Table of Contents

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 bool

Whether in use connections should be closed.

Clear(ObjectId)

Clears the connection pool for the specified service.

void Clear(ObjectId serviceId)

Parameters

serviceId ObjectId

The service id.