Class ClusterBuilder
- Namespace
- MongoDB.Driver.Core.Configuration
- Assembly
- MongoDB.Driver.dll
Represents a cluster builder.
public class ClusterBuilder
- Inheritance
-
ClusterBuilder
- Inherited Members
- Extension Methods
Constructors
- ClusterBuilder()
Initializes a new instance of the ClusterBuilder class.
Methods
- BuildCluster()
Builds the cluster.
- ConfigureCluster(Func<ClusterSettings, ClusterSettings>)
Configures the cluster settings.
- ConfigureConnection(Func<ConnectionSettings, ConnectionSettings>)
Configures the connection settings.
- ConfigureConnectionPool(Func<ConnectionPoolSettings, ConnectionPoolSettings>)
Configures the connection pool settings.
- ConfigureLoggingSettings(Func<LoggingSettings, LoggingSettings>)
Configures the logging settings.
- ConfigureServer(Func<ServerSettings, ServerSettings>)
Configures the server settings.
- ConfigureSsl(Func<SslStreamSettings, SslStreamSettings>)
Configures the SSL stream settings.
- ConfigureTcp(Func<TcpStreamSettings, TcpStreamSettings>)
Configures the TCP stream settings.
- Subscribe(IEventSubscriber)
Subscribes the specified subscriber.
- Subscribe<TEvent>(Action<TEvent>)
Subscribes to events of type
TEvent
.