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

Interface IDurableExecution

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

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

Defines one replayable durable-execution workflow step on top of the shared behavior model.

public interface IDurableExecution<TInput, TState, TOutput> : IDurableExecution<TState>, IAggregate<TState>, IAppBehavior<TInput, TOutput>

TInput

The workflow input type.

TState

The workflow state shape.

TOutput

The local output type returned to the caller.

IDurableExecution<TState>, IAggregate<TState>, IAppBehavior<TInput, TOutput>

ExecuteDurablyAsync(TInput, DurableExecutionState<TState>, IBehaviorContext, CancellationToken)

Section titled “ ExecuteDurablyAsync(TInput, DurableExecutionState<TState>, IBehaviorContext, CancellationToken)”

Executes one durable workflow step against the replayed state snapshot.

Task<DurableExecutionStepResult<TOutput>> ExecuteDurablyAsync(TInput input, DurableExecutionState<TState> execution, IBehaviorContext context, CancellationToken cancellationToken = default)

input TInput

The workflow input for this invocation.

execution DurableExecutionState<TState>

The replayed durable execution state.

context IBehaviorContext

The ambient behavior context for the current invocation.

cancellationToken CancellationToken

The token that cancels the workflow step.

Task<DurableExecutionStepResult<TOutput>>

A task that resolves to the step output plus the ordered events that should be appended durably.