Interface ICluster
Represents a MongoDB cluster.
public interface ICluster : IDisposable
- Inherited Members
Properties
- ClusterId
Gets the cluster identifier.
- CryptClient
Gets the crypt client.
- Description
Gets the cluster description.
- Settings
Gets the cluster settings.
Methods
- AcquireServerSession()
Acquires a core server session.
- Initialize()
Initializes the cluster.
- SelectServer(IServerSelector, CancellationToken)
Selects a server from the cluster.
- SelectServerAsync(IServerSelector, CancellationToken)
Selects a server from the cluster.
- StartSession(CoreSessionOptions)
Starts a session.
Events
- DescriptionChanged
Occurs when the cluster description has changed.