Table of Contents

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

domainEvent IDomainEvent

The event.

cancellationToken CancellationToken

Passed to the handlers.

Returns

Task

A task that completes when all handlers have run.