Skip to content

Interface IProjection

Namespace: Cephalon.Abstractions.Data
Assembly: Cephalon.Abstractions.dll

Applies one message, event, or record to a projection target.

public interface IProjection<in TMessage>

TMessage

The message type consumed by the projection.

ProjectAsync(TMessage, CancellationToken)

Section titled “ ProjectAsync(TMessage, CancellationToken)”

Projects the supplied message into the target read model or data view.

ValueTask ProjectAsync(TMessage message, CancellationToken cancellationToken = default)

message TMessage

The message to project.

cancellationToken CancellationToken

The token that cancels the operation.

ValueTask

A task that completes when the projection has finished applying the message.