Class SagaDurableSnapshot
Owns an authoritative durable scope and optional encoded state loaded before handler admission.
public sealed class SagaDurableSnapshot
- Inheritance
-
SagaDurableSnapshot
- Inherited Members
- Extension Methods
Constructors
SagaDurableSnapshot(Guid, long, long, long, bool, byte[]?, DateTimeOffset?)
Initializes an immutable durable scope snapshot.
public SagaDurableSnapshot(Guid incarnationId, long version, long generation, long nextEffectSequence, bool closed, byte[]? encodedState, DateTimeOffset? completedAt)
Parameters
incarnationIdGuidThe authoritative incarnation.
versionlongThe committed state version.
generationlongThe scheduling generation.
nextEffectSequencelongThe next per-saga effect sequence; this is not a global delivery cursor.
closedboolWhether the incarnation is sealed.
encodedStatebyte[]The owned encoded state, or null when retained closure has outlived the payload.
completedAtDateTimeOffset?The original completion timestamp.
Properties
Closed
Gets whether this incarnation is sealed.
public bool Closed { get; }
Property Value
CompletedAt
Gets the original completion timestamp.
public DateTimeOffset? CompletedAt { get; }
Property Value
Generation
Gets the scheduling generation.
public long Generation { get; }
Property Value
IncarnationId
Gets the authoritative incarnation.
public Guid IncarnationId { get; }
Property Value
NextEffectSequence
Gets the next per-saga effect sequence, without a global delivery-order guarantee.
public long NextEffectSequence { get; }
Property Value
Version
Gets the committed version.
public long Version { get; }
Property Value
Methods
GetEncodedState()
Returns a caller-owned state payload copy, or null for retained closure.
public byte[]? GetEncodedState()
Returns
- byte[]
The original encoded state bytes.