Table of Contents

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

builder MillraceBuilder
connectionString string
configure Action<SqlServerStorageOptions>

Returns

MillraceBuilder

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

connectionString is empty.