Table of Contents

Struct ConnectionReceivedMessageEvent

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

Occurs after a message is received.

public struct ConnectionReceivedMessageEvent
Inherited Members

Constructors

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.

Properties

ClusterId

Gets the cluster identifier.

public ClusterId ClusterId { get; }

Property Value

ClusterId

ConnectionId

Gets the connection identifier.

public ConnectionId ConnectionId { get; }

Property Value

ConnectionId

DeserializationDuration

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

public TimeSpan DeserializationDuration { get; }

Property Value

TimeSpan

Duration

Gets the duration of time it took to receive the message.

public TimeSpan Duration { get; }

Property Value

TimeSpan

Length

Gets the length of the received message.

public int Length { get; }

Property Value

int

NetworkDuration

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

public TimeSpan NetworkDuration { get; }

Property Value

TimeSpan

OperationId

Gets the operation identifier.

public long? OperationId { get; }

Property Value

long?

ResponseTo

Gets the id of the message we received a response to.

public int ResponseTo { get; }

Property Value

int

ServerId

Gets the server identifier.

public ServerId ServerId { get; }

Property Value

ServerId

Timestamp

Gets the timestamp.

public DateTime Timestamp { get; }

Property Value

DateTime