ข้ามไปยังเนื้อหา

Class DurableExecutionState

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Behaviors.Patterns.Abstractions
Assembly: Cephalon.Behaviors.Patterns.dll

Carries the replayed durable-execution state for one workflow invocation.

public sealed class DurableExecutionState<TState>

TState

The workflow state shape.

objectDurableExecutionState<TState>

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

DurableExecutionState(string, TState, long)

Section titled “ DurableExecutionState(string, TState, long)”

Initializes a new instance of the class.

public DurableExecutionState(string streamId, TState state, long version)

streamId string

The event-store stream that owns the workflow history.

state TState

The replayed workflow state.

version long

The latest replayed stream version, or -1 when no stream exists yet.

Gets a value indicating whether this execution already has persisted history.

public bool Exists { get; }

bool

Gets the replayed workflow state.

public TState State { get; }

TState

Gets the event-store stream that owns the workflow history.

public string StreamId { get; }

string

Gets the latest replayed stream version, or -1 when no stream exists yet.

public long Version { get; }

long