Beispiel #1
0
 public SchedulingController(IScheduler scheduler,
                             IConfigurationWriter configurationWriter,
                             IExecutionHistoryManager historyManager)
 {
     _scheduler           = scheduler;
     _configurationWriter = configurationWriter;
     _historyManager      = historyManager;
 }
Beispiel #2
0
        public Scheduler(
            IJobFactory jobFactory,
            ISchedulerFactory schedulerFactory,
            ILogger <Scheduler> logger,
            IExecutionHistoryManager historyManager,
            ICubesEnvironment cubesEnvironment)
        {
            _schedulerFactory = schedulerFactory;
            _jobFactory       = jobFactory;
            _logger           = logger;
            _historyManager   = historyManager;
            var configurationPath = cubesEnvironment
                                    .GetFileOnPath(CubesFolderKind.Config, CubesConstants.Files_Scheduling);

            _schedulerConfiguration = new ConfigurationBuilder()
                                      .AddYamlFile(configurationPath, optional: true, reloadOnChange: true)
                                      .Build();
        }