Table of Contents

Constructor ConnectionOpenedEvent

Namespace
MongoDB.Driver.Core.Events
Assembly
MongoDB.Driver.Core.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.