示例#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;
 }