Interface IPublisher
Publish one or more events through the mediator pipeline to be handled by multiple handlers.
Namespace: IRM.Messaging
Assembly: IRM.dll
Syntax
public interface IPublisher
Methods
PublishAsync(IEvent[], CancellationToken)
Asynchronously publish a collection of events to multiple handlers.
Declaration
Task PublishAsync(IEvent[] events, CancellationToken cancellationToken = default(CancellationToken))
Parameters
IEvent[]
events
The collection of IEvent to publish. |
System.Threading.CancellationToken
cancellationToken
The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled. |
Returns
System.Threading.Tasks.Task
The System.Threading.Tasks.Task that represents the asynchronous operation. |