Skip to content

Class DurableExecutionStepResult

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

Describes the next durable-execution outcome after one workflow step runs.

public sealed class DurableExecutionStepResult<TOutput>

TOutput

The local output returned to the caller when one is available.

objectDurableExecutionStepResult<TOutput>

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

DurableExecutionStepResult(TOutput?, IReadOnlyList<IDomainEvent>?, bool, IReadOnlyList<DurableExecutionPendingTimer>?, IReadOnlyList<DurableExecutionPendingSignal>?, IReadOnlyList<DurableExecutionCompensationAction>?)

Section titled “ DurableExecutionStepResult(TOutput?, IReadOnlyList<IDomainEvent>?, bool, IReadOnlyList<DurableExecutionPendingTimer>?, IReadOnlyList<DurableExecutionPendingSignal>?, IReadOnlyList<DurableExecutionCompensationAction>?)”

Initializes a new instance of the class.

public DurableExecutionStepResult(TOutput? output = default, IReadOnlyList<IDomainEvent>? events = null, bool isCompleted = false, IReadOnlyList<DurableExecutionPendingTimer>? pendingTimers = null, IReadOnlyList<DurableExecutionPendingSignal>? pendingSignals = null, IReadOnlyList<DurableExecutionCompensationAction>? compensationActions = null)

output TOutput?

The local output to return to the caller.

events IReadOnlyList<IDomainEvent>?

The ordered domain events to append durably after a successful step.

isCompleted bool

Marks the workflow as complete after this step.

pendingTimers IReadOnlyList<DurableExecutionPendingTimer>?

The durable timers that should remain pending after the step succeeds.

pendingSignals IReadOnlyList<DurableExecutionPendingSignal>?

The durable signals that should remain pending after the step succeeds.

compensationActions IReadOnlyList<DurableExecutionCompensationAction>?

The operator-facing compensation actions that should remain available after the step succeeds.

Gets the operator-facing compensation actions that should remain available after the step succeeds.

public IReadOnlyList<DurableExecutionCompensationAction> CompensationActions { get; }

IReadOnlyList<DurableExecutionCompensationAction>

Gets the ordered domain events to append durably after a successful step.

public IReadOnlyList<IDomainEvent> Events { get; }

IReadOnlyList<IDomainEvent>

Gets a value indicating whether the workflow should be considered complete after this step.

public bool IsCompleted { get; }

bool

Gets the local output returned to the caller when one is available.

public TOutput? Output { get; }

TOutput?

Gets the durable signals that should remain pending after the step succeeds.

public IReadOnlyList<DurableExecutionPendingSignal> PendingSignals { get; }

IReadOnlyList<DurableExecutionPendingSignal>

Gets the durable timers that should remain pending after the step succeeds.

public IReadOnlyList<DurableExecutionPendingTimer> PendingTimers { get; }

IReadOnlyList<DurableExecutionPendingTimer>