Example #1
0
 public void Send(string connectionId, IMessage message, IAddress address)
 {
     var destination = address as UdpAddress;
     if (destination == null)
     {
         throw new Exception("The destination is invalid");
     }
     Send(destination, message.Serialise());
 }
Example #2
0
 public void Send(string connectionId, IMessage message, IAddress destination)
 {
     var talker = GetTalker(connectionId, (TcpAddress)destination);
     Send(talker, message.Serialise());
 }