Esempio n. 1
0
        public async Task Start(DispatcherConfigModel config)
        {
            if (config.EnableLog)
            {
                var logProvider = _serviceProvider.GetService <ILogProvider>();
                if (logProvider != null)
                {
                    LogProvider.SetCurrentLogProvider(logProvider);
                }
            }
            _scheduler = await _scheduleManager.BuildScheduler(config.SchedulerConfig);

            var processor = new XMLSchedulingDataProcessor(new SimpleTypeLoadHelper());
            await processor.ProcessFileAndScheduleJobs(config.DispatcherConfigFilePath, _scheduler);

            await _scheduler.Start();
        }