Fixes initialization issue for deployments monitor

This commit is contained in:
benbierens 2023-11-02 14:25:17 +01:00
parent b8774e7273
commit fe11a97458
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,7 @@ namespace BiblioTech
{ {
private readonly List<CodexDeployment> deployments = new List<CodexDeployment>(); private readonly List<CodexDeployment> deployments = new List<CodexDeployment>();
public DeploymentsFilesMonitor() public void Initialize()
{ {
LoadDeployments(); LoadDeployments();
} }

View File

@ -21,6 +21,8 @@ namespace BiblioTech
var uniformArgs = new ArgsUniform<Configuration>(PrintHelp, args); var uniformArgs = new ArgsUniform<Configuration>(PrintHelp, args);
Config = uniformArgs.Parse(); Config = uniformArgs.Parse();
DeploymentFilesMonitor.Initialize();
EnsurePath(Config.DataPath); EnsurePath(Config.DataPath);
EnsurePath(Config.UserDataPath); EnsurePath(Config.UserDataPath);
EnsurePath(Config.EndpointsPath); EnsurePath(Config.EndpointsPath);