Table of Contents

Constructor ConnectionSendingMessagesEvent

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

ConnectionSendingMessagesEvent(ConnectionId, IReadOnlyList<int>, long?)

Initializes a new instance of the ConnectionSendingMessagesEvent struct.

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

Parameters

connectionId ConnectionId

The connection identifier.

requestIds IReadOnlyList<int>

The request ids.

operationId long?

The operation identifier.

ConnectionSendingMessagesEvent(ConnectionId, int, long?)

Initializes a new instance of the ConnectionSendingMessagesEvent struct.

public ConnectionSendingMessagesEvent(ConnectionId connectionId, int requestId, long? operationId)

Parameters

connectionId ConnectionId

The connection identifier.

requestId int

The request id.

operationId long?

The operation identifier.