Interface IDomainEventDispatcher
- Namespace
- Signal.Application.Events
- Assembly
- Signal.Application.dll
Delivers domain events to their handlers.
public interface IDomainEventDispatcher
Methods
DispatchAsync(IDomainEvent, CancellationToken)
Invokes all IEventHandler<TEvent>s registered for the event's runtime type.
Task DispatchAsync(IDomainEvent domainEvent, CancellationToken cancellationToken = default)
Parameters
domainEventIDomainEventThe event.
cancellationTokenCancellationTokenPassed to the handlers.
Returns
- Task
A task that completes when all handlers have run.