Excalibur.LeaderElection.SqlServer 3.0.0-alpha.84

This is a prerelease version of Excalibur.LeaderElection.SqlServer.
dotnet add package Excalibur.LeaderElection.SqlServer --version 3.0.0-alpha.84
                    
NuGet\Install-Package Excalibur.LeaderElection.SqlServer -Version 3.0.0-alpha.84
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Excalibur.LeaderElection.SqlServer" Version="3.0.0-alpha.84" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Excalibur.LeaderElection.SqlServer" Version="3.0.0-alpha.84" />
                    
Directory.Packages.props
<PackageReference Include="Excalibur.LeaderElection.SqlServer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Excalibur.LeaderElection.SqlServer --version 3.0.0-alpha.84
                    
#r "nuget: Excalibur.LeaderElection.SqlServer, 3.0.0-alpha.84"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Excalibur.LeaderElection.SqlServer@3.0.0-alpha.84
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Excalibur.LeaderElection.SqlServer&version=3.0.0-alpha.84&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Excalibur.LeaderElection.SqlServer&version=3.0.0-alpha.84&prerelease
                    
Install as a Cake Tool

Excalibur.LeaderElection.SqlServer

SQL Server implementation of distributed leader election using application locks.

Part Of

This package is included in the following metapackages:

Metapackage Tier What It Adds
Excalibur.SqlServer Complete Everything for SQL Server: ES + Outbox + Inbox + Saga + LE + Audit + Compliance + Data

Tip: Install Excalibur.SqlServer for a production-ready SQL Server stack with a single package reference.

Installation

dotnet add package Excalibur.LeaderElection.SqlServer

Features

  • Uses sp_getapplock and sp_releaseapplock for distributed locking
  • Connection factory pattern for multi-database scenarios
  • Automatic lock renewal and heartbeat
  • Graceful leadership handoff
  • AOT-compatible with full Native AOT support
  • NO Entity Framework Core dependency

Usage

// Register SQL Server leader election
services.AddSqlServerLeaderElection(connectionString);

// Or with connection factory
services.AddSqlServerLeaderElection(sp =>
    () => new SqlConnection(GetConnectionString(sp)));

How It Works

SQL Server application locks provide exclusive access to a named resource:

  • Lock acquired = leadership granted
  • Lock released = leadership relinquished
  • Lock timeout = leadership lost (failover)
  • Excalibur.LeaderElection - Core abstractions and InMemory implementation

License

This project is multi-licensed under:

See LICENSE for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Excalibur.LeaderElection.SqlServer:

Package Downloads
Excalibur.SqlServer

Complete SQL Server metapackage for Excalibur: event sourcing, outbox, inbox, sagas, leader election, audit logging, compliance, and data access in a single package reference.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.0-alpha.84 0 3/31/2026
3.0.0-alpha.83 0 3/31/2026
3.0.0-alpha.82 0 3/31/2026
3.0.0-alpha.80 46 3/30/2026
3.0.0-alpha.79 41 3/29/2026
3.0.0-alpha.76 41 3/29/2026
3.0.0-alpha.75 40 3/27/2026
3.0.0-alpha.74 41 3/27/2026
3.0.0-alpha.70 34 3/26/2026
3.0.0-alpha.68 37 3/25/2026
3.0.0-alpha.66 40 3/25/2026
3.0.0-alpha.64 35 3/25/2026
3.0.0-alpha.62 35 3/24/2026
3.0.0-alpha.59 35 3/24/2026
3.0.0-alpha.51 45 3/19/2026
3.0.0-alpha.48 38 3/18/2026
3.0.0-alpha.45 38 3/17/2026
3.0.0-alpha.44 50 3/16/2026
3.0.0-alpha.43 44 3/16/2026
3.0.0-alpha.42 41 3/16/2026
Loading failed