public SchedulerCollectorConfigurationService(SchedulerConfiguration schedulerConfiguration, ISchedulerCollectorConfigurationReadService collectorConfigurationReadService, ISchedulerCollectorConfigurationWatcher configurationWatcher ) { _schedulerConfiguration = schedulerConfiguration; _collectorConfigurationReadService = collectorConfigurationReadService; _configurationWatcher = configurationWatcher; }
public SchedulerStartup(IScheduler scheduler, AutofacJobFactory factory, ILogger <SchedulerStartup> logger, ISchedulerCollectorConfigurationService schedulerCollectorConfigurationService, ISchedulerCollectorConfigurationWatcher schedulerCollectorConfigurationWatcher) { _scheduler = scheduler; _factory = factory; _logger = logger; _schedulerCollectorConfigurationService = schedulerCollectorConfigurationService; _schedulerConfigurationChangedSubscription = schedulerCollectorConfigurationWatcher.SchedulerConfigurationChanged.Subscribe( async x => await OnSchedulerConfigurationChanged(x)); }