Ejemplo n.º 1
0
 public LightManager(ILogger <LightManager> logger, IOptionsMonitor <HueShiftOptions> appOptionsDelegate, IHueClientManager clientManager, ILocalHueClient client)
 {
     this.logger             = logger;
     this.appOptionsDelegate = appOptionsDelegate;
     this.clientManager      = clientManager;
     this.client             = client;
     this.lights             = new Dictionary <string, LightControlPair>();
 }
Ejemplo n.º 2
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;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="clientManager"></param>
 public HueSwitchRepository(IHueClientManager clientManager)
 {
     this.clientManager = clientManager;
 }