Table of Contents

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

TReadModel

Type of read model.

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

Instance TReadModel

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

Property Value

DateTimeOffset