Example #1
0
 public Future <RelayMessage> Send(RelayMessage relayMessage)
 {
     using (var requestStream = new MemoryStream(Serializer.Serialize(relayMessage, SerializerFlags.Default)))
     {
         return(new FuturePublisher <RelayMessage>()
                .CompleteWith(_client.SendRequest(requestStream))
                .Future);
     }
 }