Class ProjectionSnapshot<TReadModel>
- Namespace
- Cratis.Chronicle.Projections
- Assembly
- Cratis.Chronicle.dll
Represents a snapshot of a projection at a specific point in time grouped by CorrelationId.
public record ProjectionSnapshot<TReadModel> : IEquatable<ProjectionSnapshot<TReadModel>>
Type Parameters
TReadModelType of read model.
- Inheritance
-
ProjectionSnapshot<TReadModel>
- Implements
-
IEquatable<ProjectionSnapshot<TReadModel>>
- Inherited Members
Constructors
ProjectionSnapshot(TReadModel, IEnumerable<AppendedEvent>, DateTimeOffset, CorrelationId)
Represents a snapshot of a projection at a specific point in time grouped by CorrelationId.
public ProjectionSnapshot(TReadModel Instance, IEnumerable<AppendedEvent> Events, DateTimeOffset Occurred, CorrelationId CorrelationId)
Parameters
InstanceTReadModelThe projected instance of the read model.
EventsIEnumerable<AppendedEvent>The deserialized events that were applied.
OccurredDateTimeOffsetWhen the first event occurred.
CorrelationIdCorrelationIdThe CorrelationId the events were for.
Properties
CorrelationId
The CorrelationId the events were for.
public CorrelationId CorrelationId { get; init; }
Property Value
Events
The deserialized events that were applied.
public IEnumerable<AppendedEvent> Events { get; init; }
Property Value
Instance
The projected instance of the read model.
public TReadModel Instance { get; init; }
Property Value
- TReadModel
Occurred
When the first event occurred.
public DateTimeOffset Occurred { get; init; }