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;
 }
示例#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;
 }