Table of Contents

Constructor ServerHeartbeatSucceededEvent

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

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.