public SchedulerInstance(ILog log, 
     RecurrencyController recurrencyController,
     ScheduleRepository repo, int workers = 5)
 {
     if (Instance != null) throw new InvalidOperationException("Scheduler already initialized");
     workersAmount = workers;
     this.log = log;
     this.recurrencyController = recurrencyController;
     this.repo = repo;
     Instance = this;
 }
Beispiel #2
0
 public SchedulerInstance(ILog log,
                          RecurrencyController recurrencyController,
                          ScheduleRepository repo, int workers = 5)
 {
     if (Instance != null)
     {
         throw new InvalidOperationException("Scheduler already initialized");
     }
     workersAmount             = workers;
     this.log                  = log;
     this.recurrencyController = recurrencyController;
     this.repo                 = repo;
     Instance                  = this;
 }