Ejemplo n.º 1
0
 public Task Send(string exchangeName, byte[] body)
 {
     var address = new PublicationAddress("", exchangeName, "");
     var sendingMessage = new SendingMessage(address, body);
     return Send(sendingMessage);
 }
Ejemplo n.º 2
0
        public Task Send(SendingMessage sendingMessage)
        {
            var tcs = new TaskCompletionSource<object>();
            _toSend.Enqueue(Tuple.Create(sendingMessage, tcs));

            return tcs.Task;
        }