Constructor ServerHeartbeatSucceededEvent

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver.Core.Events

Assembly

MongoDB.Driver.dll

ServerHeartbeatSucceededEvent(ConnectionId, TimeSpan, bool)

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)

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.