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>Type Parameters
Section titled “Type Parameters”TMessage
The message type consumed by the projection.
Methods
Section titled “Methods”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)Parameters
Section titled “Parameters”message TMessage
The message to project.
cancellationToken CancellationToken
The token that cancels the operation.
Returns
Section titled “Returns”A task that completes when the projection has finished applying the message.