Table of Contents

Constructor ConnectionOpenedEvent

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

ConnectionOpenedEvent(ConnectionId, ConnectionSettings, TimeSpan, long?)

Initializes a new instance of the ConnectionOpenedEvent struct.

public ConnectionOpenedEvent(ConnectionId connectionId, ConnectionSettings connectionSettings, TimeSpan duration, long? operationId)

Parameters

connectionId ConnectionId

The connection identifier.

connectionSettings ConnectionSettings

The connection settings.

duration TimeSpan

The duration of time it took to open the connection.

operationId long?

The operation identifier.