Table of Contents

Struct ConnectionPoolClearedEvent

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

Occurs after the pool is cleared.

public struct ConnectionPoolClearedEvent
Inherited Members

Constructors

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.

Properties

CloseInUseConnections

Gets a value indicating whether in use connections should be closed.

public bool CloseInUseConnections { get; }

Property Value

bool

ClusterId

Gets the cluster identifier.

public ClusterId ClusterId { get; }

Property Value

ClusterId

ConnectionPoolSettings

Gets the connection pool settings.

public ConnectionPoolSettings ConnectionPoolSettings { get; }

Property Value

ConnectionPoolSettings

ServerId

Gets the server identifier.

public ServerId ServerId { get; }

Property Value

ServerId

ServiceId

Gets the service identifier.

public ObjectId? ServiceId { get; }

Property Value

ObjectId?

Timestamp

Gets the timestamp.

public DateTime Timestamp { get; }

Property Value

DateTime