Class ProjectionResult<T>
- Namespace
- Cratis.Chronicle.Projections
- Assembly
- Cratis.Chronicle.dll
Represents the result of an projection.
public record ProjectionResult<T> : IEquatable<ProjectionResult<T>>
Type Parameters
TType of read model.
- Inheritance
-
ProjectionResult<T>
- Implements
- Inherited Members
Constructors
ProjectionResult(T, int, EventSequenceNumber)
Represents the result of an projection.
public ProjectionResult(T ReadModel, int ProjectedEventsCount, EventSequenceNumber LastHandledEventSequenceNumber)
Parameters
ReadModelTThe instance of the read model.
ProjectedEventsCountintNumber of events that caused projection.
LastHandledEventSequenceNumberEventSequenceNumberThe last handled event sequence number.
Properties
LastHandledEventSequenceNumber
The last handled event sequence number.
public EventSequenceNumber LastHandledEventSequenceNumber { get; init; }
Property Value
ProjectedEventsCount
Number of events that caused projection.
public int ProjectedEventsCount { get; init; }
Property Value
ReadModel
The instance of the read model.
public T ReadModel { get; init; }
Property Value
- T