Show / Hide Table of Contents

Class ClusterConfigurationExtensions

Represents configuration extensions.

Inheritance
object
ClusterConfigurationExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: DotNext.Net.Cluster.Consensus.Raft.Membership
Assembly: DotNext.Net.Cluster.dll
Syntax
public static class ClusterConfigurationExtensions

Methods

View Source

AppendAsync<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.

  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾