Beispiel #1
0
 private void PublishInformation(object sender, DeviceEvent deviceEvent)
 {
     if (_broker != null && deviceEvent != null)
     {
         _broker.Publish(deviceEvent.ToBrokerMessage());
     }
 }
Beispiel #2
0
 /// <summary>
 /// Publish message to bus
 /// </summary>
 /// <param name="message"></param>
 private void Publish(DeviceEvent deviceEvent)
 {
     if (_broker != null)
     {
         _broker.Publish(deviceEvent.ToBrokerMessage());
     }
 }