Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public JobMonitorService(JobManagerService jobManager)
 {
     this.jobManager = jobManager;
     timer           = new Timer(new TimerCallback(_ => CheckAndExecute()), null, 1000, 1000);
 }