Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auto-tx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vamp
auto-tx
Commits
db61f557
Commit
db61f557
authored
6 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Initialize a StorageStatus object after the config has been loaded
Refers to
#20
parent
04de5d83
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ATxService/AutoTx.cs
+9
-0
9 additions, 0 deletions
ATxService/AutoTx.cs
with
9 additions
and
0 deletions
ATxService/AutoTx.cs
+
9
−
0
View file @
db61f557
...
@@ -95,6 +95,7 @@ namespace ATxService
...
@@ -95,6 +95,7 @@ namespace ATxService
private
ServiceConfig
_config
;
private
ServiceConfig
_config
;
private
ServiceStatus
_status
;
private
ServiceStatus
_status
;
private
StorageStatus
_storage
;
private
static
Timer
_mainTimer
;
private
static
Timer
_mainTimer
;
...
@@ -118,6 +119,7 @@ namespace ATxService
...
@@ -118,6 +119,7 @@ namespace ATxService
InitializePerformanceMonitors
();
InitializePerformanceMonitors
();
InitializeDirectories
();
InitializeDirectories
();
SetupStorageStatus
();
StartupSummary
();
StartupSummary
();
if
(
_config
.
DebugRoboSharp
)
{
if
(
_config
.
DebugRoboSharp
)
{
...
@@ -957,6 +959,13 @@ namespace ATxService
...
@@ -957,6 +959,13 @@ namespace ATxService
_lastUserDirCheck
=
FsUtils
.
CreateIncomingDirectories
(
_lastUserDirCheck
=
FsUtils
.
CreateIncomingDirectories
(
_config
.
DestinationDirectory
,
_config
.
TmpTransferDir
,
_config
.
IncomingPath
);
_config
.
DestinationDirectory
,
_config
.
TmpTransferDir
,
_config
.
IncomingPath
);
}
}
/// <summary>
/// Set up the StorageStatus object using the current configuration.
/// </summary>
private
void
SetupStorageStatus
()
{
_storage
=
new
StorageStatus
(
_config
);
}
#
endregion
#
endregion
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment