public AutoScheduleProvider(ILogger <AutoScheduleProvider> logger, IConfiguration configuration, IOptionsMonitor <HueShiftOptions> appOptionsDelegate) { this.mode = HueShiftMode.Auto; this.logger = logger; this.configuration = configuration; this.appOptionsDelegate = appOptionsDelegate; }
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; }
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; }