Interface ISender<TRequest>
- Namespace
- Savvyio.Messaging
- Assembly
- Savvyio.Core.dll
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<TRequest>> messages, Action<AsyncOptions> setup = null)
Parameters
messages
IEnumerable<IMessage<TRequest>>The messages to send.
setup
Action<AsyncOptions>The AsyncOptions which may be configured.
Returns
- Task
A System.Threading.Tasks.Task that represents the asynchronous operation.