public LightSwitcherJob(
                ILoggerFactory loggerFactory,
                ILightSwitchService lightSwitchService,
                ISunTimeService sunTimeService,
                ITimeProvider timeProvider,
                Options options)
            {
                _logger = loggerFactory.CreateLogger <LightSwitcherJob>();

                _lightSwitchService = lightSwitchService;
                _sunTimeService     = sunTimeService;
                _timeProvider       = timeProvider;
                _options            = options;

                _timeProvider.UseTimeZone(_options.TimeZone);
            }
 public LightsController(
     ILightSwitchService lightSwitchService)
 {
     _lightSwitchService = lightSwitchService;
 }
Beispiel #3
0
 public ControlHub(ILightSwitchService lightSwitchService)
 {
     _lightSwitchService = lightSwitchService;
 }