Table of Contents

Class FlowOrchestratorBuilder

Namespace
FlowOrchestrator.Core.Configuration
Assembly
FlowOrchestrator.Core.dll

Fluent builder returned by AddFlowOrchestrator() for configuring storage backends, flows, and optional features (scheduler, retention, observability).

public sealed class FlowOrchestratorBuilder
Inheritance
FlowOrchestratorBuilder
Inherited Members
Extension Methods

Remarks

Storage backends and runtimes plug in as extension methods from their own packages — UseSqlServer / UsePostgreSql / UseInMemory for storage, and UseHangfire (FlowOrchestrator.Hangfire), UseInMemoryRuntime (FlowOrchestrator.InMemory) or UseAzureServiceBusRuntime (FlowOrchestrator.ServiceBus) for the runtime.

Constructors

FlowOrchestratorBuilder(IServiceCollection)

Initialises the builder with the application's service collection.

public FlowOrchestratorBuilder(IServiceCollection services)

Parameters

services IServiceCollection

Properties

Observability

Observability options for OpenTelemetry instrumentation.

public FlowObservabilityOptions Observability { get; }

Property Value

FlowObservabilityOptions

Retention

Retention options for the background data cleanup sweep.

public FlowRetentionOptions Retention { get; }

Property Value

FlowRetentionOptions

RunControl

Run-control options for timeout and idempotency enforcement.

public FlowRunControlOptions RunControl { get; }

Property Value

FlowRunControlOptions

RunSearchIndex

Options for the opt-in run-search token index; see UseRunSearchIndex(Action<RunSearchIndexOptions>?).

public RunSearchIndexOptions RunSearchIndex { get; }

Property Value

RunSearchIndexOptions

Scheduler

Scheduler options controlling cron override persistence behaviour.

public FlowSchedulerOptions Scheduler { get; }

Property Value

FlowSchedulerOptions

Servers

Server-registry options: heartbeat interval, stale threshold and purge age of the Servers view.

public FlowServerOptions Servers { get; }

Property Value

FlowServerOptions

Services

The service collection to register services into.

public IServiceCollection Services { get; }

Property Value

IServiceCollection

Signals

Signal options for WaitForSignal parking and resume-nudge dispatch.

public FlowSignalOptions Signals { get; }

Property Value

FlowSignalOptions

Methods

AddFlow<TFlow>()

Registers TFlow as a singleton IFlowDefinition. At startup, FlowSyncHostedService validates and syncs all registered flows.

public FlowOrchestratorBuilder AddFlow<TFlow>() where TFlow : class, IFlowDefinition, new()

Returns

FlowOrchestratorBuilder

Type Parameters

TFlow

The concrete flow definition class with a default constructor.

UseRunSearchIndex(Action<RunSearchIndexOptions>?)

Enables the built-in run-search token index (experimental): deep search by token-prefix index seek instead of a LIKE scan over step payloads, with a background back-fill of existing runs.

public FlowOrchestratorBuilder UseRunSearchIndex(Action<RunSearchIndexOptions>? configure = null)

Parameters

configure Action<RunSearchIndexOptions>

Optional tuning of batch sizes and intervals.

Returns

FlowOrchestratorBuilder

This builder.

Remarks

Off by default. Honoured by the SQL Server provider; other providers ignore it. Read RunSearchIndexOptions for the storage and write-path cost before enabling it.