Table of Contents

Constructor ConnectionSendingMessagesFailedEvent

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

ConnectionSendingMessagesFailedEvent(ConnectionId, IReadOnlyList<int>, Exception, long?)

Initializes a new instance of the ConnectionSendingMessagesFailedEvent struct.

[Obsolete("Support for sending multiple messages has been removed, use the constructor with single requestId instead.")]
public ConnectionSendingMessagesFailedEvent(ConnectionId connectionId, IReadOnlyList<int> requestIds, Exception exception, long? operationId)

Parameters

connectionId ConnectionId

The connection identifier.

requestIds IReadOnlyList<int>

The request ids.

exception Exception

The exception.

operationId long?

The operation identifier.

ConnectionSendingMessagesFailedEvent(ConnectionId, int, Exception, long?)

Initializes a new instance of the ConnectionSendingMessagesFailedEvent struct.

public ConnectionSendingMessagesFailedEvent(ConnectionId connectionId, int requestId, Exception exception, long? operationId)

Parameters

connectionId ConnectionId

The connection identifier.

requestId int

The request id.

exception Exception

The exception.

operationId long?

The operation identifier.