Click or drag to resize
ServerFactory Constructor
Initializes a new instance of the ServerFactory class.

Namespace: MongoDB.Driver.Core.Servers
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.0.1
Syntax
public ServerFactory(
	ClusterConnectionMode clusterConnectionMode,
	ServerSettings settings,
	IConnectionPoolFactory connectionPoolFactory,
	IConnectionFactory heartbeatConnectionFactory,
	IServerListener listener
)

Parameters

clusterConnectionMode
Type: MongoDB.Driver.Core.ClustersClusterConnectionMode
The cluster connection mode.
settings
Type: MongoDB.Driver.Core.ConfigurationServerSettings
The settings.
connectionPoolFactory
Type: MongoDB.Driver.Core.ConnectionPoolsIConnectionPoolFactory
The connection pool factory.
heartbeatConnectionFactory
Type: MongoDB.Driver.Core.ConnectionsIConnectionFactory
The heartbeat connection factory.
listener
Type: MongoDB.Driver.Core.EventsIServerListener
The listener.
See Also