Table of Contents

Class ReducerSnapshot<TReadModel>

Namespace
Cratis.Chronicle.Reducers
Assembly
Cratis.Chronicle.dll

Represents a snapshot of a reducer at a specific point in time grouped by CorrelationId.

public record ReducerSnapshot<TReadModel> : IEquatable<ReducerSnapshot<TReadModel>>

Type Parameters

TReadModel

Type of read model.

Inheritance
ReducerSnapshot<TReadModel>
Implements
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

Instance TReadModel

The reduced instance of the read model.

Events IEnumerable<AppendedEvent>

The deserialized events that were applied.

Occurred DateTimeOffset

When the first event occurred.

CorrelationId CorrelationId

The CorrelationId the events were for.

Properties

CorrelationId

The CorrelationId the events were for.

public CorrelationId CorrelationId { get; init; }

Property Value

CorrelationId

Events

The deserialized events that were applied.

public IEnumerable<AppendedEvent> Events { get; init; }

Property Value

IEnumerable<AppendedEvent>

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; }

Property Value

DateTimeOffset