Ejemplo n.º 1
0
 private void PublishCommittedMessage(PublishPacketReceivedEventArgs message)
 {
     _topic.Subscribers = _db.GetSubScribers(_topic);
     foreach (var sub in _topic.Subscribers.Where(x => x.AttachedBroker == _jsonConfigurator.GetSettings().PrimaryNumber))
     {
         _udpComm.SendPackage(message.Packet, sub.Ip, sub.Port);
     }
 }