Interface IClusterConfigurationStorage<TAddress>
Provides a storage of cluster members.
Inherited Members
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 SourceLoadConfigurationAsync(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 SourceConfigurationChanged
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> |