Table of Contents

Struct ServerHeartbeatSucceededEvent

Namespace
MongoDB.Driver.Core.Events
Assembly
MongoDB.Driver.Core.dll

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 ConnectionId

The connection identifier.

duration TimeSpan

The duration of time it took to complete the heartbeat.

awaited bool

The 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 ConnectionId

The connection identifier.

duration TimeSpan

The duration of time it took to complete the heartbeat.

awaited bool

The awaited flag.

reply BsonDocument

The server response.

Properties

Awaited

Determines if this heartbeat event is for an awaitable hello.

public bool Awaited { get; }

Property Value

bool

ClusterId

Gets the cluster identifier.

public ClusterId ClusterId { get; }

Property Value

ClusterId

ConnectionId

Gets the connection identifier.

public ConnectionId ConnectionId { get; }

Property Value

ConnectionId

Duration

Gets the duration of time it took to complete the heartbeat.

public TimeSpan Duration { get; }

Property Value

TimeSpan

Reply

Gets the server response.

public BsonDocument Reply { get; }

Property Value

BsonDocument

ServerId

Gets the server identifier.

public ServerId ServerId { get; }

Property Value

ServerId

Timestamp

Gets the timestamp.

public DateTime Timestamp { get; }

Property Value

DateTime