Пример #1
0
        private static async Task Main(string[] args)
        {
            LogProvider.SetCurrentLogProvider(new ConsoleLogProvider());
            ISchedulerFactory factory = new StdSchedulerFactory();

            var processor = new TaskProcessor(await factory.GetScheduler());
            await processor.Run();
        }
Пример #2
0
 public TaskProcessor(IScheduler schedule)
 {
     this.schedule = schedule;
     Instance      = this;
 }