Show / Hide Table of Contents

Interface IClusterConfigurationStorage<TAddress>

Provides a storage of cluster members.

Inherited Members
IClusterConfigurationStorage.SaveConfigurationAsync<TConfiguration>(TConfiguration, long, CancellationToken)
IDisposable.Dispose()
Namespace: DotNext.Net.Cluster.Consensus.Raft.Membership
Assembly: DotNext.Net.Cluster.dll
Syntax
public interface IClusterConfigurationStorage<TAddress> : IClusterConfigurationStorage, IDisposable where TAddress : notnull
Type Parameters
Name Description
TAddress

The type of the cluster member address.

Methods

View Source

LoadConfigurationAsync(CancellationToken)

Loads configuration from the storage.

Declaration
ValueTask<IClusterConfiguration<TAddress>> LoadConfigurationAsync(CancellationToken token = default)
Parameters
Type Name Description
CancellationToken token

The token that can be used to cancel the operation.

Returns
Type Description
ValueTask<IClusterConfiguration<TAddress>>

The copy of the configuration.

Events

View Source

ConfigurationChanged

An event occurred when the configuration is changed.

Declaration
event Func<IClusterConfiguration<TAddress>, CancellationToken, ValueTask> ConfigurationChanged
Event Type
Type Description
Func<IClusterConfiguration<TAddress>, CancellationToken, ValueTask>

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾