Table of Contents

Constructor ConnectionClosedEvent

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

ConnectionClosedEvent(ConnectionId, TimeSpan, long?)

Initializes a new instance of the ConnectionClosedEvent struct.

public ConnectionClosedEvent(ConnectionId connectionId, TimeSpan duration, long? operationId)

Parameters

connectionId ConnectionId

The connection identifier.

duration TimeSpan

The duration of time it took to close the connection.

operationId long?

The operation identifier.