Table of Contents

Constructor ServerHeartbeatFailedEvent

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

ServerHeartbeatFailedEvent(ConnectionId, Exception, bool)

Initializes a new instance of the ServerHeartbeatFailedEvent struct.

[Obsolete("Use the other contstructor instead")]
public ServerHeartbeatFailedEvent(ConnectionId connectionId, Exception exception, bool awaited)

Parameters

connectionId ConnectionId

The connection identifier.

exception Exception

The exception.

awaited bool

The awaited flag.

ServerHeartbeatFailedEvent(ConnectionId, TimeSpan, Exception, bool)

Initializes a new instance of the ServerHeartbeatFailedEvent struct.

public ServerHeartbeatFailedEvent(ConnectionId connectionId, TimeSpan duration, Exception exception, bool awaited)

Parameters

connectionId ConnectionId

The connection identifier.

duration TimeSpan

The duration of time passed since corresponding ServerHeartbeatStartedEvent.

exception Exception

The exception.

awaited bool

The awaited flag.