Table of Contents

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

services IServiceCollection

The service collection to register into.

typeName string

The logical type name matching the "type" field in the manifest. Defaults to the class name of THandler when omitted.

Returns

IServiceCollection

Type Parameters

THandler

The handler class. Must implement IStepHandler or IStepHandler<TInput>.