Click or drag to resize

IConnectionPool Interface

Represents a connection pool.

Namespace:  MongoDB.Driver.Core.ConnectionPools
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
public interface IConnectionPool : IDisposable

The IConnectionPool type exposes the following members.

Properties
  NameDescription
Public propertyGeneration
Gets the generation of the connection pool.
Public propertyServerId
Gets the server identifier.
Top
Methods
  NameDescription
Public methodAcquireConnection
Acquires a connection.
Public methodAcquireConnectionAsync
Acquires a connection.
Public methodClear(Boolean)
Clears the connection pool and marks it as paused.
Public methodClear(ObjectId)
Clears the connection pool for the specified service.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodGetGeneration
Gets the current generation for the connection pool (or service).
Public methodInitialize
Initializes the connection pool.
Public methodSetReady
Marks the pool as ready.
Top
See Also