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>Type Parameters
Section titled “Type Parameters”TInput
The workflow input type.
TState
The workflow state shape.
TOutput
The local output type returned to the caller.
Implements
Section titled “Implements”IDurableExecution<TState>, IAggregate<TState>, IAppBehavior<TInput, TOutput>
Methods
Section titled “Methods”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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”Task<DurableExecutionStepResult<TOutput>>
A task that resolves to the step output plus the ordered events that should be appended durably.