Click or drag to resize
ConnectionPoolListenerPair Class
This API is preliminary and subject to change.
Represents a pair of connection pool listeners. All events will be forwarded to both listeners.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.Core.EventsConnectionPoolListenerPair

Namespace: MongoDB.Driver.Core.Events
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.0.1
Syntax
public class ConnectionPoolListenerPair : IConnectionPoolListener, 
	IListener

The ConnectionPoolListenerPair type exposes the following members.

Constructors
  NameDescription
Public methodConnectionPoolListenerPair
Initializes a new instance of the ConnectionPoolListenerPair class.
Top
Methods
  NameDescription
Public methodConnectionPoolAfterAddingAConnection
An event that occurs after a connection has been added to a connection pool.
Public methodConnectionPoolAfterCheckingInAConnection
An event that occurs after a connection has been checked in to a connection pool.
Public methodConnectionPoolAfterCheckingOutAConnection
An event that occurs after a connection has been checked out from a connection pool.
Public methodConnectionPoolAfterClosing
An event that occurs after a connection pool has been closed.
Public methodConnectionPoolAfterEnteringWaitQueue
An event that occurs after a task has entered a connection pool's wait queue.
Public methodConnectionPoolAfterOpening
An event that occurs after a connection pool has been opened.
Public methodConnectionPoolAfterRemovingAConnection
An event that occurs after a connection has been removed from a connection pool.
Public methodConnectionPoolBeforeAddingAConnection
An event that occurs before adding a connection to a connection pool.
Public methodConnectionPoolBeforeCheckingInAConnection
An event that occurs before checking in a connection to a connection pool.
Public methodConnectionPoolBeforeCheckingOutAConnection
An event that occurs before checking out a connection from a connection pool.
Public methodConnectionPoolBeforeClosing
An event that occurs before closing a connection pool.
Public methodConnectionPoolBeforeEnteringWaitQueue
An event that occurs before a task enters a connection pool's wait queue.
Public methodConnectionPoolBeforeOpening
An event that occurs before opening a connection pool.
Public methodConnectionPoolBeforeRemovingAConnection
An event that occurs before removing a connection from a connection pool.
Public methodConnectionPoolErrorCheckingOutAConnection
An event that occurs when an error occurred while checking out a connection from a connection pool.
Public methodConnectionPoolErrorEnteringWaitQueue
An event that occurs when there is an error while a task was entering the connection pool's wait queue.
Public methodStatic memberCreate
Combines two connection pool listeners.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also