Click or drag to resize

ClusterSelectedServerEvent Constructor

Initializes a new instance of the ClusterSelectedServerEvent struct.

Namespace:  MongoDB.Driver.Core.Events
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public ClusterSelectedServerEvent(
	ClusterDescription clusterDescription,
	IServerSelector serverSelector,
	ServerDescription selectedServer,
	TimeSpan duration,
	Nullable<long> operationId,
	string operationName
)

Parameters

clusterDescription
Type: MongoDB.Driver.Core.ClustersClusterDescription
The cluster description.
serverSelector
Type: MongoDB.Driver.Core.Clusters.ServerSelectorsIServerSelector
The server selector.
selectedServer
Type: MongoDB.Driver.Core.ServersServerDescription
The selected server.
duration
Type: SystemTimeSpan
The duration of time it took to select the server.
operationId
Type: SystemNullableInt64
The operation identifier.
operationName
Type: SystemString
The operation name.
See Also