Interface ISender<TRequest>
Defines a producer/sender channel used for interacting with other subsystems (out-process/inter-application) to do something (e.g., change the state).
public interface ISender<in TRequest> where TRequest : IRequest
Type Parameters
TRequest
The type of the model to invoke on a handler.
Methods
SendAsync(IEnumerable<IMessage<TRequest>>, Action<AsyncOptions>)
Sends the specified messages
asynchronous using Point-to-Point Channel/P2P MEP.
Task SendAsync(IEnumerable<IMessage<in TRequest>> messages, Action<AsyncOptions> setup = null)
Parameters
messages
IEnumerable<IMessage<TRequest>>The messages to send.
setup
Action<AsyncOptions>The AsyncOptions which may be configured.