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

Class DurableExecutionRuntimeState

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

Namespace: Cephalon.Abstractions.Execution
Assembly: Cephalon.Abstractions.dll

Describes the latest operator-facing runtime state reported for one durable-execution stream.

public sealed record DurableExecutionRuntimeState : IEquatable<DurableExecutionRuntimeState>

objectDurableExecutionRuntimeState

IEquatable<DurableExecutionRuntimeState>

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

DurableExecutionRuntimeState(string, string, string?, IReadOnlyList<string>, string?, string?, DateTimeOffset?, long?, long?, int?, int, bool, bool, int, int, int, int, int, IReadOnlyList<DurableExecutionPendingTimer>, IReadOnlyList<DurableExecutionPendingSignal>, IReadOnlyList<DurableExecutionCompensationAction>, string?, IReadOnlyDictionary<string, string>)

Section titled “ DurableExecutionRuntimeState(string, string, string?, IReadOnlyList<string>, string?, string?, DateTimeOffset?, long?, long?, int?, int, bool, bool, int, int, int, int, int, IReadOnlyList<DurableExecutionPendingTimer>, IReadOnlyList<DurableExecutionPendingSignal>, IReadOnlyList<DurableExecutionCompensationAction>, string?, IReadOnlyDictionary<string, string>)”

Describes the latest operator-facing runtime state reported for one durable-execution stream.

public DurableExecutionRuntimeState(string BehaviorId, string StreamId, string? SourceModuleId, IReadOnlyList<string> TransportIds, string? LastOutcome, string? LastStage, DateTimeOffset? LastObservedAtUtc, long? LastReplayedVersion, long? LastKnownVersion, int? LastHttpStatusCode, int LastAppendedEventCount, bool LastStepProducedOutput, bool LastStepCompleted, int StartedCount, int SucceededCount, int ContinuationCount, int CompletedCount, int FailedCount, IReadOnlyList<DurableExecutionPendingTimer> PendingTimers, IReadOnlyList<DurableExecutionPendingSignal> PendingSignals, IReadOnlyList<DurableExecutionCompensationAction> CompensationActions, string? LastError, IReadOnlyDictionary<string, string> Metadata)

BehaviorId string

The stable durable behavior identifier that owns the stream.

StreamId string

The stable event-stream identifier reported by the durable workflow.

SourceModuleId string?

The owning module identifier when one is known at runtime.

TransportIds IReadOnlyList<string>

The transport identifiers that expose the durable workflow.

LastOutcome string?

The last reported durable-execution outcome identifier when one exists.

LastStage string?

The last reported durable-execution stage identifier when one exists.

LastObservedAtUtc DateTimeOffset?

The UTC timestamp when the latest observation was reported.

LastReplayedVersion long?

The latest stream version that was fully replayed before the durable step executed.

LastKnownVersion long?

The latest stream version known after the reported durable step finished or failed.

LastHttpStatusCode int?

The latest HTTP success status code returned by the durable execution strategy when one was reported.

LastAppendedEventCount int

The number of domain events appended by the latest successful durable step.

LastStepProducedOutput bool

Indicates whether the latest successful durable step produced local output.

LastStepCompleted bool

Indicates whether the latest reported durable step declared the workflow completed.

StartedCount int

The number of started observations reported so far.

SucceededCount int

The number of succeeded observations reported so far.

ContinuationCount int

The number of continuation-staged observations reported so far.

CompletedCount int

The number of completed observations reported so far.

FailedCount int

The number of failed observations reported so far.

PendingTimers IReadOnlyList<DurableExecutionPendingTimer>

The durable timers that are currently pending for this stream.

PendingSignals IReadOnlyList<DurableExecutionPendingSignal>

The durable signals that are currently awaited for this stream.

CompensationActions IReadOnlyList<DurableExecutionCompensationAction>

The operator-facing compensation actions currently available for this stream.

LastError string?

The latest operator-facing error summary when the durable step reported a failure.

Metadata IReadOnlyDictionary<string, string>

The operator-facing metadata captured by the latest report.

The stable durable behavior identifier that owns the stream.

public string BehaviorId { get; init; }

string

The operator-facing compensation actions currently available for this stream.

public IReadOnlyList<DurableExecutionCompensationAction> CompensationActions { get; init; }

IReadOnlyList<DurableExecutionCompensationAction>

The number of completed observations reported so far.

public int CompletedCount { get; init; }

int

The number of continuation-staged observations reported so far.

public int ContinuationCount { get; init; }

int

Gets a value indicating whether the latest report says the workflow still has continuation work pending.

public bool ContinuationPending { get; }

bool

Gets a value indicating whether the latest runtime state still has pending continuation, timer, or signal work.

public bool CoordinationPending { get; }

bool

The number of failed observations reported so far.

public int FailedCount { get; init; }

int

Gets a value indicating whether one or more operator-facing compensation actions are currently available for the stream.

public bool HasCompensationActions { get; }

bool

Gets a value indicating whether one or more durable signals are currently awaited for the stream.

public bool HasPendingSignals { get; }

bool

Gets a value indicating whether one or more durable timers are currently pending for the stream.

public bool HasPendingTimers { get; }

bool

Gets a value indicating whether the latest report says the durable stream is currently in a failed posture.

public bool IsFailed { get; }

bool

The number of domain events appended by the latest successful durable step.

public int LastAppendedEventCount { get; init; }

int

The latest operator-facing error summary when the durable step reported a failure.

public string? LastError { get; init; }

string?

The latest HTTP success status code returned by the durable execution strategy when one was reported.

public int? LastHttpStatusCode { get; init; }

int?

The latest stream version known after the reported durable step finished or failed.

public long? LastKnownVersion { get; init; }

long?

The UTC timestamp when the latest observation was reported.

public DateTimeOffset? LastObservedAtUtc { get; init; }

DateTimeOffset?

The last reported durable-execution outcome identifier when one exists.

public string? LastOutcome { get; init; }

string?

The latest stream version that was fully replayed before the durable step executed.

public long? LastReplayedVersion { get; init; }

long?

The last reported durable-execution stage identifier when one exists.

public string? LastStage { get; init; }

string?

Indicates whether the latest reported durable step declared the workflow completed.

public bool LastStepCompleted { get; init; }

bool

Indicates whether the latest successful durable step produced local output.

public bool LastStepProducedOutput { get; init; }

bool

The operator-facing metadata captured by the latest report.

public IReadOnlyDictionary<string, string> Metadata { get; init; }

IReadOnlyDictionary<string, string>

Gets the earliest UTC due timestamp across the currently pending timers when one exists.

public DateTimeOffset? NextTimerDueAtUtc { get; }

DateTimeOffset?

The durable signals that are currently awaited for this stream.

public IReadOnlyList<DurableExecutionPendingSignal> PendingSignals { get; init; }

IReadOnlyList<DurableExecutionPendingSignal>

The durable timers that are currently pending for this stream.

public IReadOnlyList<DurableExecutionPendingTimer> PendingTimers { get; init; }

IReadOnlyList<DurableExecutionPendingTimer>

The owning module identifier when one is known at runtime.

public string? SourceModuleId { get; init; }

string?

The number of started observations reported so far.

public int StartedCount { get; init; }

int

The stable event-stream identifier reported by the durable workflow.

public string StreamId { get; init; }

string

The number of succeeded observations reported so far.

public int SucceededCount { get; init; }

int

Gets the total number of observations reported for this durable-execution stream.

public int TotalReports { get; }

int

The transport identifiers that expose the durable workflow.

public IReadOnlyList<string> TransportIds { get; init; }

IReadOnlyList<string>