Example #1
0
 ///  <summary>
 /// Instantiates a message of type T and performs a regular <see cref="Reply"/>.
 /// </summary>
 /// <typeparam name="T">The type of message, usually an interface.</typeparam>
 /// <param name="messageConstructor">An action which initializes properties of the message.</param>
 /// <param name="options">Options for this reply.</param>
 public Task Reply <T>(Action <T> messageConstructor, ReplyOptions options)
 {
     return(BusOperations.Reply(this, messageConstructor, options));
 }
Example #2
0
 /// <summary>
 /// Sends the message to the endpoint which sent the message currently being handled.
 /// </summary>
 /// <param name="message">The message to send.</param>
 /// <param name="options">Options for this reply.</param>
 public Task Reply(object message, ReplyOptions options)
 {
     return(BusOperations.Reply(this, message, options));
 }