Interface IStepHandler<TInput>
- Namespace
- FlowOrchestrator.Core.Execution
- Assembly
- FlowOrchestrator.Core.dll
Typed step handler contract. Prefer this over IStepHandler when inputs
are well-defined — the framework deserialises Inputs
to TInput before invoking the handler.
public interface IStepHandler<TInput>
Type Parameters
TInputPOCO type that maps to the step's
inputsdictionary.
Methods
ExecuteAsync(IExecutionContext, IFlowDefinition, IStepInstance<TInput>)
Executes the step with strongly-typed inputs and returns an optional result value.
ValueTask<object?> ExecuteAsync(IExecutionContext context, IFlowDefinition flow, IStepInstance<TInput> step)
Parameters
contextIExecutionContextThe ambient execution context for this run.
flowIFlowDefinitionThe flow definition currently executing.
stepIStepInstance<TInput>The step instance with inputs already deserialised to
TInput.
Returns
- ValueTask<object>
The step output, or a IStepResult to control execution behaviour.