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