Table of Contents

Struct ProjectionRead<TProjection>

Namespace
Excalibur.EventSourcing
Assembly
Excalibur.EventSourcing.Abstractions.dll

A projection read, together with what can be said about how current it was.

public readonly record struct ProjectionRead<TProjection> : IEquatable<ProjectionRead<TProjection>> where TProjection : class

Type Parameters

TProjection

The projection type.

Implements
Inherited Members

Remarks

The freshness travels WITH the value rather than being reported separately, because a caller that has the projection in hand and has to go and ask a second question about it will mostly not ask.

Constructors

ProjectionRead(TProjection?, ProjectionFreshness)

A projection read, together with what can be said about how current it was.

public ProjectionRead(TProjection? Projection, ProjectionFreshness Freshness)

Parameters

Projection TProjection

The projection, or null when no row exists for the id.

Freshness ProjectionFreshness

What the read can say about the projection's currency.

Remarks

The freshness travels WITH the value rather than being reported separately, because a caller that has the projection in hand and has to go and ask a second question about it will mostly not ask.

Properties

Freshness

What the read can say about the projection's currency.

public ProjectionFreshness Freshness { get; init; }

Property Value

ProjectionFreshness

Projection

The projection, or null when no row exists for the id.

public TProjection? Projection { get; init; }

Property Value

TProjection