Class ClusterConfigurationExtensions
Represents configuration extensions.
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft.Membership
Assembly: DotNext.Net.Cluster.dll
Syntax
public static class ClusterConfigurationExtensions
Methods
View SourceAppendAsync<TAddress>(IPersistentState, IClusterConfiguration<TAddress>, CancellationToken)
Appends a new configuration as a log entry to the Write-Ahead Log.
Declaration
public static ValueTask<long> AppendAsync<TAddress>(this IPersistentState state, IClusterConfiguration<TAddress> configuration, CancellationToken token = default) where TAddress : notnull
Parameters
| Type | Name | Description |
|---|---|---|
| IPersistentState | state | The persistent state. |
| IClusterConfiguration<TAddress> | configuration | The configuration to append. |
| CancellationToken | token | The token that can be used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| ValueTask<long> | The index of the added entry. |
Type Parameters
| Name | Description |
|---|---|
| TAddress | The type of the address. |