Table of Contents

Struct ConnectionSentMessagesEvent

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

Occurs after a message has been sent.

public struct ConnectionSentMessagesEvent
Inherited Members

Constructors

ConnectionSentMessagesEvent(ConnectionId, IReadOnlyList<int>, int, TimeSpan, TimeSpan, long?)

Initializes a new instance of the ConnectionSentMessagesEvent struct.

public ConnectionSentMessagesEvent(ConnectionId connectionId, IReadOnlyList<int> requestIds, int length, TimeSpan networkDuration, TimeSpan serializationDuration, long? operationId)

Parameters

connectionId ConnectionId

The connection identifier.

requestIds IReadOnlyList<int>

The request ids.

length int

The length.

networkDuration TimeSpan

The duration of time spent on the network.

serializationDuration TimeSpan

The duration of time spent serializing the messages.

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

Duration

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

public TimeSpan Duration { get; }

Property Value

TimeSpan

Length

Gets the combined length of the messages.

public int Length { get; }

Property Value

int

NetworkDuration

Gets the duration of time spent on the network.

public TimeSpan NetworkDuration { get; }

Property Value

TimeSpan

OperationId

Gets the operation identifier.

public long? OperationId { get; }

Property Value

long?

RequestIds

Gets the request ids.

public IReadOnlyList<int> RequestIds { get; }

Property Value

IReadOnlyList<int>

SerializationDuration

Gets the duration of time spent serializing the messages.

public TimeSpan SerializationDuration { get; }

Property Value

TimeSpan

ServerId

Gets the server identifier.

public ServerId ServerId { get; }

Property Value

ServerId

Timestamp

Gets the timestamp.

public DateTime Timestamp { get; }

Property Value

DateTime