Class StepHandlerServiceCollectionExtensions
- Namespace
- FlowOrchestrator.Core.Configuration
- Assembly
- FlowOrchestrator.Core.dll
DI registration helpers for step handler types.
public static class StepHandlerServiceCollectionExtensions
- Inheritance
-
StepHandlerServiceCollectionExtensions
- Inherited Members
Methods
AddStepHandler<THandler>(IServiceCollection, string?)
Registers THandler as a transient service and associates it with
typeName so the orchestrator can resolve and invoke it by the step's
"type" field in the flow manifest.
public static IServiceCollection AddStepHandler<THandler>(this IServiceCollection services, string? typeName = null) where THandler : class
Parameters
servicesIServiceCollectionThe service collection to register into.
typeNamestringThe logical type name matching the
"type"field in the manifest. Defaults to the class name ofTHandlerwhen omitted.
Returns
Type Parameters
THandlerThe handler class. Must implement IStepHandler or IStepHandler<TInput>.