Method Clear
- Namespace
- MongoDB.Driver.Core.ConnectionPools
- Assembly
- MongoDB.Driver.Core.dll
Clear(bool)
Clears the connection pool and marks it as paused.
void Clear(bool closeInUseConnections = false)
Parameters
closeInUseConnections
boolWhether in use connections should be closed.
Clear(ObjectId)
Clears the connection pool for the specified service.
void Clear(ObjectId serviceId)
Parameters
serviceId
ObjectIdThe service id.