private void Consumer_SessionLost(HumidityConsumer sender, AllJoynSessionLostEventArgs args) { if (this.onSensorSessionLost != null) this.onSensorSessionLost.Invoke(this); }
public HumiditySensor(HumidityConsumer consumer, string UniqueName) : base(UniqueName) { this.consumer = consumer; this.Title = "Humidity"; this.consumer.SessionLost += Consumer_SessionLost; }