Table of Contents

Interface IStepHandlerMetadata

Namespace
FlowOrchestrator.Core.Execution
Assembly
FlowOrchestrator.Core.dll

Registered singleton that associates a step type name with its handler implementation, and provides the bridge to resolve and invoke the handler from DI at execution time.

public interface IStepHandlerMetadata

Properties

Type

The logical type name that matches the "type" field in the flow manifest (e.g. "HttpCall", "SendEmail").

string Type { get; }

Property Value

string

Methods

ExecuteAsync(IServiceProvider, IExecutionContext, IFlowDefinition, IStepInstance)

Resolves the handler from sp, deserialises step inputs, invokes the handler, and returns a normalised IStepResult.

ValueTask<IStepResult> ExecuteAsync(IServiceProvider sp, IExecutionContext ctx, IFlowDefinition flow, IStepInstance step)

Parameters

sp IServiceProvider

The DI service provider scoped to the current Hangfire job.

ctx IExecutionContext

The ambient execution context.

flow IFlowDefinition

The flow definition currently executing.

step IStepInstance

The step instance with resolved inputs.

Returns

ValueTask<IStepResult>