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
TProjectionThe projection type.
- Implements
-
IEquatable<ProjectionRead<TProjection>>
- 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
ProjectionTProjectionThe projection, or null when no row exists for the id.
FreshnessProjectionFreshnessWhat 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
Projection
The projection, or null when no row exists for the id.
public TProjection? Projection { get; init; }
Property Value
- TProjection