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()); }
public void Send(string connectionId, IMessage message, IAddress destination) { var talker = GetTalker(connectionId, (TcpAddress)destination); Send(talker, message.Serialise()); }