private void HueDriverSwitchLight(object sender, HueSwitchLightEventArgs e) { if (_hueBridgeMapping.ContainsKey(e.Light.Id)) { Task.Factory.StartNew(() => _hueBridgeMapping[e.Light.Id].SwitchLight(e)); } }
public virtual void SwitchLight(HueSwitchLightEventArgs eventArgs) { }
public override void SwitchLight(HueSwitchLightEventArgs eventArgs) { _switchNode?.DispatchValue(eventArgs.State); }