![]() |
VOOZH | about |
dotnet add package Excalibur.LeaderElection.Consul --version 3.0.0-alpha.208
NuGet\Install-Package Excalibur.LeaderElection.Consul -Version 3.0.0-alpha.208
<PackageReference Include="Excalibur.LeaderElection.Consul" Version="3.0.0-alpha.208" />
<PackageVersion Include="Excalibur.LeaderElection.Consul" Version="3.0.0-alpha.208" />Directory.Packages.props
<PackageReference Include="Excalibur.LeaderElection.Consul" />Project file
paket add Excalibur.LeaderElection.Consul --version 3.0.0-alpha.208
#r "nuget: Excalibur.LeaderElection.Consul, 3.0.0-alpha.208"
#:package Excalibur.LeaderElection.Consul@3.0.0-alpha.208
#addin nuget:?package=Excalibur.LeaderElection.Consul&version=3.0.0-alpha.208&prereleaseInstall as a Cake Addin
#tool nuget:?package=Excalibur.LeaderElection.Consul&version=3.0.0-alpha.208&prereleaseInstall as a Cake Tool
HashiCorp Consul implementation of distributed leader election using sessions and KV store.
dotnet add package Excalibur.LeaderElection.Consul
// Register Consul leader election
services.AddConsulLeaderElection(options =>
{
options.ConsulAddress = "http://localhost:8500";
options.KeyPrefix = "myapp/leader-election";
options.SessionTTL = TimeSpan.FromSeconds(30);
options.LockDelay = TimeSpan.FromSeconds(15);
});
// Or for a specific resource
services.AddConsulLeaderElectionForResource("order-processor");
| Option | Default | Description |
|---|---|---|
ConsulAddress |
http://localhost:8500 |
Consul server address |
Datacenter |
null |
Target datacenter |
Token |
null |
ACL token for authentication |
KeyPrefix |
excalibur/leader-election |
KV store key prefix |
SessionTTL |
30 seconds | Session time-to-live |
LockDelay |
15 seconds | Delay before lock reacquisition |
HealthCheckId |
null |
Health check to bind session |
Consul provides distributed locking via sessions:
PUT ?acquire=<session> on KV keyExcalibur.LeaderElection - Core abstractions and InMemory implementationThis project is multi-licensed under:
See for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0-alpha.208 | 44 | 6/11/2026 |
| 3.0.0-alpha.207 | 44 | 6/11/2026 |
| 3.0.0-alpha.205 | 51 | 6/10/2026 |
| 3.0.0-alpha.204 | 50 | 6/8/2026 |
| 3.0.0-alpha.203 | 47 | 6/8/2026 |
| 3.0.0-alpha.202 | 46 | 6/8/2026 |
| 3.0.0-alpha.201 | 51 | 6/8/2026 |
| 3.0.0-alpha.199 | 51 | 6/8/2026 |
| 3.0.0-alpha.198 | 56 | 5/28/2026 |
| 3.0.0-alpha.197 | 62 | 5/28/2026 |
| 3.0.0-alpha.194 | 60 | 5/20/2026 |
| 3.0.0-alpha.193 | 56 | 5/13/2026 |
| 3.0.0-alpha.192 | 54 | 5/13/2026 |
| 3.0.0-alpha.191 | 51 | 5/13/2026 |
| 3.0.0-alpha.189 | 53 | 5/12/2026 |
| 3.0.0-alpha.187 | 57 | 5/8/2026 |
| 3.0.0-alpha.185 | 57 | 5/7/2026 |
| 3.0.0-alpha.183 | 50 | 5/7/2026 |
| 3.0.0-alpha.182 | 51 | 5/6/2026 |
| 3.0.0-alpha.181 | 51 | 5/6/2026 |