Method UseSqlServerStorage
- Namespace
- Millrace
- Assembly
- Millrace.Storage.SqlServer.dll
UseSqlServerStorage(MillraceBuilder, string, Action<SqlServerStorageOptions>?)
Registers SQL Server as the storage provider.
public static MillraceBuilder UseSqlServerStorage(this MillraceBuilder builder, string connectionString, Action<SqlServerStorageOptions>? configure = null)
Parameters
builderMillraceBuilderconnectionStringstringconfigureAction<SqlServerStorageOptions>
Returns
Remarks
Registration is last-wins, so calling this after another provider replaces it rather than conflicting — which is what lets a test host override whatever the composition root configured.
The provider advertises no notification capability, because SQL Server has no
LISTEN/NOTIFY; workers fall back to adaptive polling, and wakeup latency rather than
correctness is what differs from PostgreSQL.
Exceptions
- ArgumentException
connectionStringis empty.