Method UseStorage
- Namespace
- Millrace
- Assembly
- Millrace.dll
UseStorage(Func<IServiceProvider, IJobStorage>, Func<IServiceProvider, IWorkflowStorage>?, Func<IServiceProvider, IMonitoringStorage>?)
Registers storage implementations (last-wins). Provider packages call this from their
own UseXxxStorage extensions.
public MillraceBuilder UseStorage(Func<IServiceProvider, IJobStorage> jobStorage, Func<IServiceProvider, IWorkflowStorage>? workflowStorage = null, Func<IServiceProvider, IMonitoringStorage>? monitoringStorage = null)
Parameters
jobStorageFunc<IServiceProvider, IJobStorage>The Layer 0 job contract. Required.
workflowStorageFunc<IServiceProvider, IWorkflowStorage>The workflow instance and bookmark contract.
monitoringStorageFunc<IServiceProvider, IMonitoringStorage>The dashboard read model. Optional here so a provider under construction still composes, but a supported provider implements it (§11.14) — omitting it makes
MapMillraceDashboardfail at startup rather than serving a blank dashboard.