Skip to content
Snippets Groups Projects
Commit db61f557 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

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
......@@ -95,6 +95,7 @@ namespace ATxService
private ServiceConfig _config;
private ServiceStatus _status;
private StorageStatus _storage;
private static Timer _mainTimer;
......@@ -118,6 +119,7 @@ namespace ATxService
InitializePerformanceMonitors();
InitializeDirectories();
SetupStorageStatus();
StartupSummary();
if (_config.DebugRoboSharp) {
......@@ -957,6 +959,13 @@ namespace ATxService
_lastUserDirCheck = FsUtils.CreateIncomingDirectories(
_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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment