DotNext.Net.Cluster by .NET Foundation and Contributors

<PackageReference Include="DotNext.Net.Cluster" Version="4.12.0" />

 ICluster

Represents local view of the entire cluster.

Gets the leader node.

An event raised when leader has been changed.

ValueTask<bool> ResignAsync(CancellationToken token = default)

Revokes leadership and starts new election process.

Waits for the leader election asynchronously.