ClusterSelectedServerEvent Constructor |
This API is preliminary and subject to change.
Namespace: MongoDB.Driver.Core.EventsAssembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.4.1
Syntaxpublic ClusterSelectedServerEvent(
ClusterDescription clusterDescription,
IServerSelector serverSelector,
ServerDescription selectedServer,
TimeSpan duration,
Nullable<long> operationId
)
Public Sub New (
clusterDescription As ClusterDescription,
serverSelector As IServerSelector,
selectedServer As ServerDescription,
duration As TimeSpan,
operationId As Nullable(Of Long)
)
new :
clusterDescription : ClusterDescription *
serverSelector : IServerSelector *
selectedServer : ServerDescription *
duration : TimeSpan *
operationId : Nullable<int64> -> ClusterSelectedServerEvent
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