Struct ServerHeartbeatSucceededEvent
Occurs when a heartbeat succeeded.
public struct ServerHeartbeatSucceededEvent
- Inherited Members
Constructors
ServerHeartbeatSucceededEvent(ConnectionId, TimeSpan, bool)
Initializes a new instance of the ServerHeartbeatSucceededEvent struct.
public ServerHeartbeatSucceededEvent(ConnectionId connectionId, TimeSpan duration, bool awaited)
Parameters
connectionId
ConnectionIdThe connection identifier.
duration
TimeSpanThe duration of time it took to complete the heartbeat.
awaited
boolThe awaited flag.
ServerHeartbeatSucceededEvent(ConnectionId, TimeSpan, bool, BsonDocument)
Initializes a new instance of the ServerHeartbeatSucceededEvent struct.
public ServerHeartbeatSucceededEvent(ConnectionId connectionId, TimeSpan duration, bool awaited, BsonDocument reply)
Parameters
connectionId
ConnectionIdThe connection identifier.
duration
TimeSpanThe duration of time it took to complete the heartbeat.
awaited
boolThe awaited flag.
reply
BsonDocumentThe server response.
Properties
Awaited
Determines if this heartbeat event is for an awaitable hello.
public bool Awaited { get; }
Property Value
ClusterId
Gets the cluster identifier.
public ClusterId ClusterId { get; }
Property Value
ConnectionId
Gets the connection identifier.
public ConnectionId ConnectionId { get; }
Property Value
Duration
Gets the duration of time it took to complete the heartbeat.
public TimeSpan Duration { get; }
Property Value
Reply
Gets the server response.
public BsonDocument Reply { get; }
Property Value
ServerId
Gets the server identifier.
public ServerId ServerId { get; }
Property Value
Timestamp
Gets the timestamp.
public DateTime Timestamp { get; }