Click or drag to resize

ClusterSelectedServerEvent Constructor

This API is preliminary and subject to change.
Initializes a new instance of the ClusterSelectedServerEvent struct.

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

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.
See Also