Click or drag to resize

IClusterableServerFactoryCreateServer Method

Creates the server.

Namespace:  MongoDB.Driver.Core.Servers
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax
IClusterableServer CreateServer(
	ClusterType clusterType,
	ClusterId clusterId,
	IClusterClock clusterClock,
	EndPoint endPoint
)

Parameters

clusterType
Type: MongoDB.Driver.Core.ClustersClusterType
The cluster type.
clusterId
Type: MongoDB.Driver.Core.ClustersClusterId
The cluster identifier.
clusterClock
Type: MongoDB.Driver.Core.ClustersIClusterClock
The cluster clock.
endPoint
Type: System.NetEndPoint
The end point.

Return Value

Type: IClusterableServer
A server.
See Also