public AutoScheduleProvider(ILogger <AutoScheduleProvider> logger, IConfiguration configuration, IOptionsMonitor <HueShiftOptions> appOptionsDelegate)
 {
     this.mode               = HueShiftMode.Auto;
     this.logger             = logger;
     this.configuration      = configuration;
     this.appOptionsDelegate = appOptionsDelegate;
 }
示例#2
0
 public AutoLightScheduler(ILogger <AutoLightScheduler> logger, IOptionsMonitor <HueShiftOptions> appOptionsDelegate, IOptionsMonitor <CustomScheduleOptions> scheduleOptionsDelegate,
                           ILightManager lightManager, IEnumerable <IScheduleProvider> scheduleProviders)
 {
     this.mode               = HueShiftMode.Auto;
     this.logger             = logger;
     this.appOptionsDelegate = appOptionsDelegate;
     this.scheduleProvider   = scheduleProviders.First(x => x.Mode() == this.mode);
     this.lightManager       = lightManager;
 }
示例#3
0
 public CustomLightScheduler(ILogger <CustomLightScheduler> logger, IOptionsMonitor <HueShiftOptions> appOptionsDelegate, IOptionsMonitor <CustomScheduleOptions> scheduleOptionsDelegate,
                             IHueClientManager clientManager, ILocalHueClient client)
 {
     this.mode               = HueShiftMode.Auto;
     this.logger             = logger;
     this.appOptionsDelegate = appOptionsDelegate;
     this.clientManager      = clientManager;
     this.client             = client;
 }