async Task ReplySendReplyTo(IMessageHandlerContext context) { #region BasicReplyReplyToDestination ReplyOptions options = new ReplyOptions(); options.RouteReplyTo("MyDestination"); await context.Reply(new MyMessage(), options); #endregion }
public void ReplyOptions_GetReplyToRoute_Should_Return_Configured_Reply_Route() { const string expectedReplyToAddress = "custom replyTo address"; var options = new ReplyOptions(); options.RouteReplyTo(expectedReplyToAddress); Assert.AreEqual(expectedReplyToAddress, options.GetReplyToRoute()); }
async Task ReplySendReplyTo(IMessageHandlerContext context) { #region BasicReplyReplyToDestination var options = new ReplyOptions(); options.RouteReplyTo("MyDestination"); var myMessage = new MyMessage(); await context.Reply(myMessage, options) .ConfigureAwait(false); #endregion }