Table of Contents

Constructor ConnectionReceivedMessageEvent

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

ConnectionReceivedMessageEvent(ConnectionId, int, int, TimeSpan, TimeSpan, long?)

Initializes a new instance of the ConnectionReceivedMessageEvent struct.

public ConnectionReceivedMessageEvent(ConnectionId connectionId, int responseTo, int length, TimeSpan networkDuration, TimeSpan deserializationDuration, long? operationId)

Parameters

connectionId ConnectionId

The connection identifier.

responseTo int

The id of the message we received a response to.

length int

The length of the received message.

networkDuration TimeSpan

The duration of network time it took to receive the message.

deserializationDuration TimeSpan

The duration of deserialization time it took to receive the message.

operationId long?

The operation identifier.