Exemplo n.º 1
0
 public void Reply(params object[] messages)
 {
     MessagingBestPractices.AssertIsValidForReply(messages.ToList());
     if (_messageBeingHandled.ReplyToAddress == null)
     {
         throw new InvalidOperationException("Reply was called with null reply-to-address field. It can happen if you are using a SendOnly client. See http://particular.net/articles/one-way-send-only-endpoints");
     }
     SendMessage(_messageBeingHandled.ReplyToAddress, _messageBeingHandled.CorrelationId ?? _messageBeingHandled.Id, MessageIntentEnum.Reply, messages);
 }