Table of Contents

Constructor ConnectionPoolClearedEvent

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

ConnectionPoolClearedEvent(ServerId, ConnectionPoolSettings)

Initializes a new instance of the ConnectionPoolClearedEvent struct.

public ConnectionPoolClearedEvent(ServerId serverId, ConnectionPoolSettings connectionPoolSettings)

Parameters

serverId ServerId

The server identifier.

connectionPoolSettings ConnectionPoolSettings

The connection pool settings.

ConnectionPoolClearedEvent(ServerId, ConnectionPoolSettings, bool)

Initializes a new instance of the ConnectionPoolClearedEvent struct.

public ConnectionPoolClearedEvent(ServerId serverId, ConnectionPoolSettings connectionPoolSettings, bool closeInUseConnections)

Parameters

serverId ServerId

The server identifier.

connectionPoolSettings ConnectionPoolSettings

The connection pool settings.

closeInUseConnections bool

Whether in use connections should be closed.

ConnectionPoolClearedEvent(ServerId, ConnectionPoolSettings, ObjectId?)

Initializes a new instance of the ConnectionPoolClearedEvent struct.

public ConnectionPoolClearedEvent(ServerId serverId, ConnectionPoolSettings connectionPoolSettings, ObjectId? serviceId)

Parameters

serverId ServerId

The server identifier.

connectionPoolSettings ConnectionPoolSettings

The connection pool settings.

serviceId ObjectId?

The service identifier.

ConnectionPoolClearedEvent(ServerId, ConnectionPoolSettings, ObjectId?, bool)

Initializes a new instance of the ConnectionPoolClearedEvent struct.

public ConnectionPoolClearedEvent(ServerId serverId, ConnectionPoolSettings connectionPoolSettings, ObjectId? serviceId, bool closeInUseConnections)

Parameters

serverId ServerId

The server identifier.

connectionPoolSettings ConnectionPoolSettings

The connection pool settings.

serviceId ObjectId?

The service identifier.

closeInUseConnections bool

Whether in use connections should be closed.