Interface IProjectionDispatcher
- Namespace
- Stratara.Projections.Abstractions
- Assembly
- Stratara.Projections.dll
Dispatches a single event to all registered projections. Implementations are expected to route the event through the configured IProjectionManager pipeline.
public interface IProjectionDispatcher
- Extension Methods
Methods
DispatchAsync(IEvent, CancellationToken)
Dispatches the supplied event to every relevant projection.
Task DispatchAsync(IEvent wrappedEvent, CancellationToken cancellationToken)
Parameters
wrappedEventIEventThe event (already wrapped in IEvent) to dispatch.
cancellationTokenCancellationTokenCancellation token propagated to each projection invocation.