Interface IClusterMemberLifetime
Provides additional control over
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.AspNetCore.Cluster.dll
Syntax
public interface IClusterMemberLifetime
Methods
| Improve this Doc View SourceInitialize(IRaftCluster, IDictionary<String, String>)
Configures instance of
Declaration
void Initialize(IRaftCluster cluster, IDictionary<string, string> metadata)
Parameters
Type | Name | Description |
---|---|---|
IRaftCluster | cluster | The instance to be configured. |
IDictionary<String, String> | metadata | The metadata of the local cluster member to fill. |
Remarks
This method can be used to attach all necessary event handlers.
Shutdown(IRaftCluster)
Configures instance of
Declaration
void Shutdown(IRaftCluster cluster)
Parameters
Type | Name | Description |
---|---|---|
IRaftCluster | cluster | The instance to be configured. |
Remarks
This method can be used to detach all event handlers attached in Initialize(IRaftCluster, IDictionary<String, String>) method.