Table of Contents

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

T

Type 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

ReadModel T

The instance of the read model.

ProjectedEventsCount int

Number of events that caused projection.

LastHandledEventSequenceNumber EventSequenceNumber

The last handled event sequence number.

Properties

LastHandledEventSequenceNumber

The last handled event sequence number.

public EventSequenceNumber LastHandledEventSequenceNumber { get; init; }

Property Value

EventSequenceNumber

ProjectedEventsCount

Number of events that caused projection.

public int ProjectedEventsCount { get; init; }

Property Value

int

ReadModel

The instance of the read model.

public T ReadModel { get; init; }

Property Value

T