Пример #1
0
        public ScheduleHandler(DataService data, DiscordSocketClient client, LogHandler log,
                               PlaytestService playtestService
                               , UserHandler userHandler, Random random, ReservationService reservationService, GoogleCalendar calendar)
        {
            Console.WriteLine("Setting up ScheduleHandler...");
            _playtestService    = playtestService;
            _log                = log;
            _dataService        = data;
            _client             = client;
            _userHandler        = userHandler;
            _random             = random;
            _reservationService = reservationService;
            _calendar           = calendar;

            //Fluent Scheduler init and events
            JobManager.Initialize(new Registry());

            JobManager.JobStart     += FluentJobStart;
            JobManager.JobEnd       += FluentJobEnd;
            JobManager.JobException += FluentJobException;
        }