/// <summary> /// Instantiates a message of type T and sends it. /// </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">The options for the send.</param> public Task Send <T>(Action <T> messageConstructor, SendOptions options) { return(BusOperations.Send(this, messageConstructor, options)); }
/// <summary> /// Sends the provided message. /// </summary> /// <param name="message">The message to send.</param> /// <param name="options">The options for the send.</param> public Task Send(object message, SendOptions options) { return(BusOperations.Send(this, message, options)); }