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>Inheritance
Section titled “Inheritance”object ← DurableExecutionRuntimeState
Implements
Section titled “Implements”IEquatable<DurableExecutionRuntimeState>
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”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)Parameters
Section titled “Parameters”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.
Properties
Section titled “Properties”BehaviorId
Section titled “ BehaviorId”The stable durable behavior identifier that owns the stream.
public string BehaviorId { get; init; }Property Value
Section titled “Property Value”CompensationActions
Section titled “ CompensationActions”The operator-facing compensation actions currently available for this stream.
public IReadOnlyList<DurableExecutionCompensationAction> CompensationActions { get; init; }Property Value
Section titled “Property Value”IReadOnlyList<DurableExecutionCompensationAction>
CompletedCount
Section titled “ CompletedCount”The number of completed observations reported so far.
public int CompletedCount { get; init; }Property Value
Section titled “Property Value”ContinuationCount
Section titled “ ContinuationCount”The number of continuation-staged observations reported so far.
public int ContinuationCount { get; init; }Property Value
Section titled “Property Value”ContinuationPending
Section titled “ ContinuationPending”Gets a value indicating whether the latest report says the workflow still has continuation work pending.
public bool ContinuationPending { get; }Property Value
Section titled “Property Value”CoordinationPending
Section titled “ CoordinationPending”Gets a value indicating whether the latest runtime state still has pending continuation, timer, or signal work.
public bool CoordinationPending { get; }Property Value
Section titled “Property Value”FailedCount
Section titled “ FailedCount”The number of failed observations reported so far.
public int FailedCount { get; init; }Property Value
Section titled “Property Value”HasCompensationActions
Section titled “ HasCompensationActions”Gets a value indicating whether one or more operator-facing compensation actions are currently available for the stream.
public bool HasCompensationActions { get; }Property Value
Section titled “Property Value”HasPendingSignals
Section titled “ HasPendingSignals”Gets a value indicating whether one or more durable signals are currently awaited for the stream.
public bool HasPendingSignals { get; }Property Value
Section titled “Property Value”HasPendingTimers
Section titled “ HasPendingTimers”Gets a value indicating whether one or more durable timers are currently pending for the stream.
public bool HasPendingTimers { get; }Property Value
Section titled “Property Value”IsFailed
Section titled “ IsFailed”Gets a value indicating whether the latest report says the durable stream is currently in a failed posture.
public bool IsFailed { get; }Property Value
Section titled “Property Value”LastAppendedEventCount
Section titled “ LastAppendedEventCount”The number of domain events appended by the latest successful durable step.
public int LastAppendedEventCount { get; init; }Property Value
Section titled “Property Value”LastError
Section titled “ LastError”The latest operator-facing error summary when the durable step reported a failure.
public string? LastError { get; init; }Property Value
Section titled “Property Value”LastHttpStatusCode
Section titled “ LastHttpStatusCode”The latest HTTP success status code returned by the durable execution strategy when one was reported.
public int? LastHttpStatusCode { get; init; }Property Value
Section titled “Property Value”int?
LastKnownVersion
Section titled “ LastKnownVersion”The latest stream version known after the reported durable step finished or failed.
public long? LastKnownVersion { get; init; }Property Value
Section titled “Property Value”long?
LastObservedAtUtc
Section titled “ LastObservedAtUtc”The UTC timestamp when the latest observation was reported.
public DateTimeOffset? LastObservedAtUtc { get; init; }Property Value
Section titled “Property Value”LastOutcome
Section titled “ LastOutcome”The last reported durable-execution outcome identifier when one exists.
public string? LastOutcome { get; init; }Property Value
Section titled “Property Value”LastReplayedVersion
Section titled “ LastReplayedVersion”The latest stream version that was fully replayed before the durable step executed.
public long? LastReplayedVersion { get; init; }Property Value
Section titled “Property Value”long?
LastStage
Section titled “ LastStage”The last reported durable-execution stage identifier when one exists.
public string? LastStage { get; init; }Property Value
Section titled “Property Value”LastStepCompleted
Section titled “ LastStepCompleted”Indicates whether the latest reported durable step declared the workflow completed.
public bool LastStepCompleted { get; init; }Property Value
Section titled “Property Value”LastStepProducedOutput
Section titled “ LastStepProducedOutput”Indicates whether the latest successful durable step produced local output.
public bool LastStepProducedOutput { get; init; }Property Value
Section titled “Property Value”Metadata
Section titled “ Metadata”The operator-facing metadata captured by the latest report.
public IReadOnlyDictionary<string, string> Metadata { get; init; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
NextTimerDueAtUtc
Section titled “ NextTimerDueAtUtc”Gets the earliest UTC due timestamp across the currently pending timers when one exists.
public DateTimeOffset? NextTimerDueAtUtc { get; }Property Value
Section titled “Property Value”PendingSignals
Section titled “ PendingSignals”The durable signals that are currently awaited for this stream.
public IReadOnlyList<DurableExecutionPendingSignal> PendingSignals { get; init; }Property Value
Section titled “Property Value”IReadOnlyList<DurableExecutionPendingSignal>
PendingTimers
Section titled “ PendingTimers”The durable timers that are currently pending for this stream.
public IReadOnlyList<DurableExecutionPendingTimer> PendingTimers { get; init; }Property Value
Section titled “Property Value”IReadOnlyList<DurableExecutionPendingTimer>
SourceModuleId
Section titled “ SourceModuleId”The owning module identifier when one is known at runtime.
public string? SourceModuleId { get; init; }Property Value
Section titled “Property Value”StartedCount
Section titled “ StartedCount”The number of started observations reported so far.
public int StartedCount { get; init; }Property Value
Section titled “Property Value”StreamId
Section titled “ StreamId”The stable event-stream identifier reported by the durable workflow.
public string StreamId { get; init; }Property Value
Section titled “Property Value”SucceededCount
Section titled “ SucceededCount”The number of succeeded observations reported so far.
public int SucceededCount { get; init; }Property Value
Section titled “Property Value”TotalReports
Section titled “ TotalReports”Gets the total number of observations reported for this durable-execution stream.
public int TotalReports { get; }Property Value
Section titled “Property Value”TransportIds
Section titled “ TransportIds”The transport identifiers that expose the durable workflow.
public IReadOnlyList<string> TransportIds { get; init; }