Table of Contents

Class InMemoryServiceCollectionExtensions

Namespace
FlowOrchestrator.InMemory
Assembly
FlowOrchestrator.InMemory.dll

DI registration helpers for the in-memory FlowOrchestrator storage backend and runtime.

public static class InMemoryServiceCollectionExtensions
Inheritance
InMemoryServiceCollectionExtensions
Inherited Members

Methods

UseInMemory(FlowOrchestratorBuilder)

Registers in-memory implementations of all storage interfaces. All data is lost when the process restarts. Use for testing or lightweight local scenarios only.

public static FlowOrchestratorBuilder UseInMemory(this FlowOrchestratorBuilder builder)

Parameters

builder FlowOrchestratorBuilder

The FlowOrchestrator builder to register into.

Returns

FlowOrchestratorBuilder

UseInMemoryRuntime(FlowOrchestratorBuilder)

Registers the in-memory step-execution runtime: a Channel<T>-based dispatcher, a background-service consumer that calls IFlowOrchestrator.RunStepAsync for each dispatched step, and a PeriodicTimer-based recurring trigger dispatcher that fires cron-scheduled flows in-process.

public static FlowOrchestratorBuilder UseInMemoryRuntime(this FlowOrchestratorBuilder builder)

Parameters

builder FlowOrchestratorBuilder

The FlowOrchestrator builder to register into.

Returns

FlowOrchestratorBuilder

The same builder for chaining.

Remarks

Call this inside AddFlowOrchestrator(opts => opts.UseInMemoryRuntime()) as an alternative to Hangfire. Provides cron-trigger feature parity with the Hangfire runtime via FlowOrchestrator.InMemory.PeriodicTimerRecurringTriggerDispatcher.

The runtime is registered with TryAdd semantics so it can co-exist with other registrations without conflicting.