DotNext.Net.Cluster by .NET Foundation and Contributors

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

.NET API 644,504 bytes

 IRaftStateMachine<TMember>

interface IRaftStateMachine<TMember> : IRaftStateMachine where TMember : IRaftClusterMember
IReadOnlyCollection<TMember> Members { get; }

void MoveToFollowerState(IWeakCallerStateIdentity callerState, bool randomizeTimeout, long? newTerm)

void MoveToLeaderState(IWeakCallerStateIdentity callerState, TMember leader)

void UnavailableMemberDetected(IWeakCallerStateIdentity callerState, TMember member, CancellationToken token)