Class ReducerSnapshot<TReadModel>
Represents a snapshot of a reducer at a specific point in time grouped by CorrelationId.
public record ReducerSnapshot<TReadModel> : IEquatable<ReducerSnapshot<TReadModel>>
Type Parameters
TReadModelType of read model.
- Inheritance
-
ReducerSnapshot<TReadModel>
- Implements
-
IEquatable<ReducerSnapshot<TReadModel>>
- Inherited Members
Constructors
ReducerSnapshot(TReadModel, IEnumerable<AppendedEvent>, DateTimeOffset, CorrelationId)
Represents a snapshot of a reducer at a specific point in time grouped by CorrelationId.
public ReducerSnapshot(TReadModel Instance, IEnumerable<AppendedEvent> Events, DateTimeOffset Occurred, CorrelationId CorrelationId)
Parameters
InstanceTReadModelThe reduced 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 reduced instance of the read model.
public TReadModel Instance { get; init; }
Property Value
- TReadModel
Occurred
When the first event occurred.
public DateTimeOffset Occurred { get; init; }