DotNext.Net.Cluster by .NET Foundation and Contributors

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

.NET API 723,352 bytes

 IPersistentState

Represents persistent state of local cluster member required by Raft consensus protocol.
long Term { get; }

Reads Term value associated with the local member from the persistent storage.

Suspens the caller until the log entry with term equal to Term will be committed.

Increments Term value and persists the item that was voted for on in the last vote.

bool IsVotedFor(ClusterMemberId& modreq(System.Runtime.InteropServices.InAttribute) id)

ValueTask UpdateTermAsync(long term, bool resetLastVote)

Persists the last actual Term.

Persists the item that was voted for on in the last vote.