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>Type Parameters
Section titled “Type Parameters”TState
The workflow state shape.
Inheritance
Section titled “Inheritance”object ← DurableExecutionState<TState>
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”DurableExecutionState(string, TState, long)
Section titled “ DurableExecutionState(string, TState, long)”Initializes a new instance of the
public DurableExecutionState(string streamId, TState state, long version)Parameters
Section titled “Parameters”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.
Properties
Section titled “Properties”Exists
Section titled “ Exists”Gets a value indicating whether this execution already has persisted history.
public bool Exists { get; }Property Value
Section titled “Property Value”Gets the replayed workflow state.
public TState State { get; }Property Value
Section titled “Property Value”TState
StreamId
Section titled “ StreamId”Gets the event-store stream that owns the workflow history.
public string StreamId { get; }Property Value
Section titled “Property Value”Version
Section titled “ Version”Gets the latest replayed stream version, or -1 when no stream exists yet.
public long Version { get; }