Esempio n. 1
0
        public ApiRouter(
            ApiThrottler apiThrottler,
            IOptionsService optionsService,
            IBellService bellService,
            ITalkTimerService timerService,
            ITalkScheduleService talksService,
            IDateTimeService dateTimeService)
        {
            _apiThrottler    = apiThrottler;
            _optionsService  = optionsService;
            _dateTimeService = dateTimeService;

            _timersApiController = new Lazy <TimersApiController>(() =>
                                                                  new TimersApiController(timerService, talksService, _optionsService, _apiThrottler));

            _dateTimeApiController = new Lazy <DateTimeApiController>(() =>
                                                                      new DateTimeApiController(_apiThrottler));

            _bellApiController = new Lazy <BellApiController>(() =>
                                                              new BellApiController(_optionsService, bellService, _apiThrottler));

            _systemApiController = new Lazy <SystemApiController>(() =>
                                                                  new SystemApiController(_optionsService, _apiThrottler));

            _webHooksApiController = new Lazy <WebHooksApiController>(() =>
                                                                      new WebHooksApiController());
        }
Esempio n. 2
0
 public BellApiController(
     IOptionsService optionsService,
     IBellService bellService,
     ApiThrottler apiThrottler)
 {
     _optionsService = optionsService;
     _bellService    = bellService;
     _apiThrottler   = apiThrottler;
 }
Esempio n. 3
0
 public TimersApiController(
     ITalkTimerService timerService,
     ITalkScheduleService talkScheduleService,
     IOptionsService optionsService,
     ApiThrottler apiThrottler)
 {
     _timerService        = timerService;
     _talkScheduleService = talkScheduleService;
     _optionsService      = optionsService;
     _apiThrottler        = apiThrottler;
 }
Esempio n. 4
0
        public HttpServer(
            IOptionsService optionsService,
            IBellService bellService,
            ITalkTimerService timerService,
            ITalkScheduleService talksService)
        {
            _optionsService = optionsService;

            _apiThrottler = new ApiThrottler(optionsService);

            _apiRouter = new ApiRouter(_apiThrottler, _optionsService, bellService, timerService, talksService);
        }
Esempio n. 5
0
        public HttpServer(
            IOptionsService optionsService,
            IBellService bellService,
            ITalkTimerService timerService,
            ITalkScheduleService talksService)
        {
            _optionsService = optionsService;

            _clock24Hour  = new DateTime(1, 1, 1, 23, 1, 1).ToShortTimeString().Contains("23");
            _apiThrottler = new ApiThrottler(optionsService);

            _apiRouter = new ApiRouter(_apiThrottler, _optionsService, bellService, timerService, talksService);
        }
 public SystemApiController(IOptionsService optionsService, ApiThrottler apiThrottler)
 {
     _optionsService = optionsService;
     _apiThrottler   = apiThrottler;
 }
Esempio n. 7
0
 public DateTimeApiController(ApiThrottler apiThrottler)
 {
     _apiThrottler = apiThrottler;
 }