Class InMemoryFlowRepository
- Namespace
- FlowOrchestrator.InMemory
- Assembly
- FlowOrchestrator.InMemory.dll
In-memory implementation of IFlowRepository that holds code-defined
IFlowDefinition instances registered via AddFlow<T>().
public sealed class InMemoryFlowRepository : IFlowRepository
- Inheritance
-
InMemoryFlowRepository
- Implements
- Inherited Members
Remarks
This repository is populated once at startup by FlowSyncHostedService and is
read-only afterwards. It stores the original definition objects, not serialized records.
Methods
Add(IFlowDefinition)
Adds a flow definition to the in-memory collection.
public void Add(IFlowDefinition definition)
Parameters
definitionIFlowDefinitionThe flow definition instance to register.
GetAllFlowsAsync()
Returns all registered flow definitions.
public ValueTask<IReadOnlyList<IFlowDefinition>> GetAllFlowsAsync()