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
servicesIServiceCollection
Properties
Observability
Observability options for OpenTelemetry instrumentation.
public FlowObservabilityOptions Observability { get; }
Property Value
Retention
Retention options for the background data cleanup sweep.
public FlowRetentionOptions Retention { get; }
Property Value
RunControl
Run-control options for timeout and idempotency enforcement.
public FlowRunControlOptions RunControl { get; }
Property Value
RunSearchIndex
Options for the opt-in run-search token index; see UseRunSearchIndex(Action<RunSearchIndexOptions>?).
public RunSearchIndexOptions RunSearchIndex { get; }
Property Value
Scheduler
Scheduler options controlling cron override persistence behaviour.
public FlowSchedulerOptions Scheduler { get; }
Property Value
Servers
Server-registry options: heartbeat interval, stale threshold and purge age of the Servers view.
public FlowServerOptions Servers { get; }
Property Value
Services
The service collection to register services into.
public IServiceCollection Services { get; }
Property Value
Signals
Signal options for WaitForSignal parking and resume-nudge dispatch.
public FlowSignalOptions Signals { get; }
Property Value
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
Type Parameters
TFlowThe 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
configureAction<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.