Skip to main content
Table of Contents

Interface IProjectionManager

Namespace
Stratara.Projections.Abstractions
Assembly
Stratara.Projections.dll

Fans an incoming event bundle out to every registered IProjection in parallel and runs the per-projection dispatch via IProjectionHandler.

public interface IProjectionManager
Extension Methods

Methods

HandleAsync(IReadOnlyList<IEvent>, CancellationToken)

Dispatch the given events to every registered projection. Projections that have no relevant handler are skipped.

Task HandleAsync(IReadOnlyList<IEvent> events, CancellationToken cancellationToken)

Parameters

events IReadOnlyList<IEvent>

The bundle's events. The framework's workers hand the framework's manager only the events a registered projection is dispatched, leaving the others unread; a manager registered in its place receives every event of the bundle.

cancellationToken CancellationToken

Cancellation token propagated to all projection invocations.

Returns

Task