Struct ClusterSelectedServerEvent
Occurs after a server is selected.
public struct ClusterSelectedServerEvent
- Inherited Members
Constructors
ClusterSelectedServerEvent(ClusterDescription, IServerSelector, ServerDescription, TimeSpan, long?, string)
Initializes a new instance of the ClusterSelectedServerEvent struct.
public ClusterSelectedServerEvent(ClusterDescription clusterDescription, IServerSelector serverSelector, ServerDescription selectedServer, TimeSpan duration, long? operationId, string operationName)
Parameters
clusterDescriptionClusterDescriptionThe cluster description.
serverSelectorIServerSelectorThe server selector.
selectedServerServerDescriptionThe selected server.
durationTimeSpanThe duration of time it took to select the server.
operationIdlong?The operation identifier.
operationNamestringThe operation name.
Properties
ClusterDescription
Gets the cluster description.
public ClusterDescription ClusterDescription { get; }
Property Value
ClusterId
Gets the cluster identifier.
public ClusterId ClusterId { get; }
Property Value
Duration
Gets the duration of time it took to select the server.
public TimeSpan Duration { get; }
Property Value
OperationId
Gets the operation identifier.
public long? OperationId { get; }
Property Value
- long?
OperationName
Gets the operation name.
public string OperationName { get; }
Property Value
SelectedServer
Gets the selected server.
public ServerDescription SelectedServer { get; }
Property Value
ServerSelector
Gets the server selector.
public IServerSelector ServerSelector { get; }
Property Value
Timestamp
Gets the timestamp.
public DateTime Timestamp { get; }