Class ProjectionAttestation
- Namespace
- Excalibur.EventSourcing
- Assembly
- Excalibur.EventSourcing.Abstractions.dll
Identifies the roster and member lifetimes covered by a projection freshness observation.
public sealed record ProjectionAttestation : IEquatable<ProjectionAttestation>
- Inheritance
-
ProjectionAttestation
- Implements
- Inherited Members
Remarks
Freshness is an observation, not a promise that the roster will never change. Readers validate this receipt after reading data.
Constructors
ProjectionAttestation(string, string, long, IReadOnlyDictionary<string, Guid>)
Identifies the roster and member lifetimes covered by a projection freshness observation.
public ProjectionAttestation(string SubscriptionName, string RosterIdentity, long ThroughPosition, IReadOnlyDictionary<string, Guid> CoveredMembers)
Parameters
SubscriptionNamestringThe subscription whose roster was observed.
RosterIdentitystringThe identity of that roster snapshot.
ThroughPositionlongThe contiguous stream position covered.
CoveredMembersIReadOnlyDictionary<string, Guid>Projection keys and binding identifiers whose progress was confirmed.
Remarks
Freshness is an observation, not a promise that the roster will never change. Readers validate this receipt after reading data.
Properties
CoveredMembers
Projection keys and binding identifiers whose progress was confirmed.
public IReadOnlyDictionary<string, Guid> CoveredMembers { get; init; }
Property Value
RosterIdentity
The identity of that roster snapshot.
public string RosterIdentity { get; init; }
Property Value
SubscriptionName
The subscription whose roster was observed.
public string SubscriptionName { get; init; }
Property Value
ThroughPosition
The contiguous stream position covered.
public long ThroughPosition { get; init; }