ClusterSelectedServerEvent Constructor |
Namespace:
MongoDB.Driver.Core.Events
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public ClusterSelectedServerEvent(
ClusterDescription clusterDescription,
IServerSelector serverSelector,
ServerDescription selectedServer,
TimeSpan duration,
long? operationId,
string operationName
)
Public Sub New (
clusterDescription As ClusterDescription,
serverSelector As IServerSelector,
selectedServer As ServerDescription,
duration As TimeSpan,
operationId As Long?,
operationName As String
)
new :
clusterDescription : ClusterDescription *
serverSelector : IServerSelector *
selectedServer : ServerDescription *
duration : TimeSpan *
operationId : Nullable<int64> *
operationName : string -> 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. - operationName
- Type: SystemString
The operation name.
See Also