Class FlowOrchestratorBuilder
- Namespace
- FlowOrchestrator.Core.Configuration
- Assembly
- FlowOrchestrator.Core.dll
Fluent builder returned by AddFlowOrchestrator() for configuring
storage backends, flows, and optional features (Hangfire, scheduler, retention, observability).
public sealed class FlowOrchestratorBuilder
- Inheritance
-
FlowOrchestratorBuilder
- Inherited Members
- Extension Methods
Constructors
FlowOrchestratorBuilder(IServiceCollection)
Initialises the builder with the application's service collection.
public FlowOrchestratorBuilder(IServiceCollection services)
Parameters
servicesIServiceCollection
Properties
HangfireEnabled
true when UseHangfire() has been called. Checked by the Hangfire integration's service registration to conditionally wire Hangfire-specific services.
public bool HangfireEnabled { get; }
Property Value
Observability
Observability options for OpenTelemetry and event persistence.
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
Scheduler
Scheduler options controlling cron override persistence behaviour.
public FlowSchedulerOptions Scheduler { get; }
Property Value
Services
The service collection to register services into.
public IServiceCollection Services { 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.
UseHangfire()
Activates Hangfire integration. The actual registration of Hangfire-coupled services
(trigger, step runner, recurring sync) is performed by AddFlowOrchestrator
in the FlowOrchestrator.Hangfire assembly when this flag is set.
public FlowOrchestratorBuilder UseHangfire()