public JobMonitorService(JobManagerService jobManager)
 {
     this.jobManager = jobManager;
     RestoreTriggeredActions();
     timer     = new Timer(new TimerCallback(_ => CheckAndExecute()), null, 1000, 1000);
     saveTimer = new Timer(new TimerCallback(_ => SaveStateIfChanged()), null, 5000, 5000);
 }
 public JobMonitorService(JobManagerService jobManager)
 {
     this.jobManager = jobManager;
     timer           = new Timer(new TimerCallback(_ => CheckAndExecute()), null, 1000, 1000);
 }