/// <summary> /// Method invoked to notify the function about zone state changes. /// The new zone state is stored in the member variable _zoneState /// </summary> /// <param name="e">Event argument, passed by the notification event.</param> protected override void notifyOnZoneUpdate(ZoneServer.ZoneStateEventArgs e) { lock (this) { //_log.Trace(m => m("ConcreteSleepFunction: notifyOnZoneUpdate() EventArgs={0} ...", e.ToString())); _lastZoneChangeToON = calculateZoneChangeToON(_lastZoneChangeToON, _zoneState, e.ZoneState); // Store zone change, will be processed in calculate method _newZoneState.Add(e.ZoneState); } }
/// <summary> /// Method invoked to notify the function about zone state changes. /// </summary> /// <param name="e">Event argument, passed by the notification event.</param> protected override void notifyOnZoneUpdate(ZoneServer.ZoneStateEventArgs e) { }