ConnectionPoolClearedEvent Constructor (ServerId, ConnectionPoolSettings, NullableObjectId, Boolean) |
Namespace:
MongoDB.Driver.Core.Events
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public ConnectionPoolClearedEvent(
ServerId serverId,
ConnectionPoolSettings connectionPoolSettings,
ObjectId? serviceId,
bool closeInUseConnections
)
Public Sub New (
serverId As ServerId,
connectionPoolSettings As ConnectionPoolSettings,
serviceId As ObjectId?,
closeInUseConnections As Boolean
)
new :
serverId : ServerId *
connectionPoolSettings : ConnectionPoolSettings *
serviceId : Nullable<ObjectId> *
closeInUseConnections : bool -> ConnectionPoolClearedEvent
Parameters
- serverId
- Type: MongoDB.Driver.Core.ServersServerId
The server identifier. - connectionPoolSettings
- Type: MongoDB.Driver.Core.ConfigurationConnectionPoolSettings
The connection pool settings. - serviceId
- Type: SystemNullableObjectId
The service identifier. - closeInUseConnections
- Type: SystemBoolean
Whether in use connections should be closed.
See Also