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; }
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; }