Table of Contents

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

jobStorage Func<IServiceProvider, IJobStorage>

The Layer 0 job contract. Required.

workflowStorage Func<IServiceProvider, IWorkflowStorage>

The workflow instance and bookmark contract.

monitoringStorage Func<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 MapMillraceDashboard fail at startup rather than serving a blank dashboard.

Returns

MillraceBuilder