Table of Contents

Class SagaDurableSnapshot

Namespace
Excalibur.Dispatch.Messaging
Assembly
Excalibur.Dispatch.Abstractions.dll

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

incarnationId Guid

The authoritative incarnation.

version long

The committed state version.

generation long

The scheduling generation.

nextEffectSequence long

The next per-saga effect sequence; this is not a global delivery cursor.

closed bool

Whether the incarnation is sealed.

encodedState byte[]

The owned encoded state, or null when retained closure has outlived the payload.

completedAt DateTimeOffset?

The original completion timestamp.

Properties

Closed

Gets whether this incarnation is sealed.

public bool Closed { get; }

Property Value

bool

CompletedAt

Gets the original completion timestamp.

public DateTimeOffset? CompletedAt { get; }

Property Value

DateTimeOffset?

Generation

Gets the scheduling generation.

public long Generation { get; }

Property Value

long

IncarnationId

Gets the authoritative incarnation.

public Guid IncarnationId { get; }

Property Value

Guid

NextEffectSequence

Gets the next per-saga effect sequence, without a global delivery-order guarantee.

public long NextEffectSequence { get; }

Property Value

long

Version

Gets the committed version.

public long Version { get; }

Property Value

long

Methods

GetEncodedState()

Returns a caller-owned state payload copy, or null for retained closure.

public byte[]? GetEncodedState()

Returns

byte[]

The original encoded state bytes.