Struct SubscriptionCheckpoint
- Namespace
- Excalibur.EventSourcing.Subscriptions
- Assembly
- Excalibur.EventSourcing.dll
A single stored subscription checkpoint: the projection it belongs to and its last checkpointed position.
public readonly record struct SubscriptionCheckpoint : IEquatable<SubscriptionCheckpoint>
- Implements
- Inherited Members
Remarks
The pair is carried apart rather than as one composed string so a reader can group by subscription without re-parsing a delimiter that either part may itself contain.
Constructors
SubscriptionCheckpoint(string, string, long)
A single stored subscription checkpoint: the projection it belongs to and its last checkpointed position.
public SubscriptionCheckpoint(string SubscriptionName, string ProjectionKey, long Position)
Parameters
SubscriptionNamestringThe stable subscription name.
ProjectionKeystringThe projection's key within that subscription.
PositionlongThe last checkpointed global-stream position.
Remarks
The pair is carried apart rather than as one composed string so a reader can group by subscription without re-parsing a delimiter that either part may itself contain.
Properties
Position
The last checkpointed global-stream position.
public long Position { get; init; }
Property Value
ProjectionKey
The projection's key within that subscription.
public string ProjectionKey { get; init; }
Property Value
SubscriptionName
The stable subscription name.
public string SubscriptionName { get; init; }