Click or drag to resize
PerformanceCounterListener Class
This API is preliminary and subject to change.
Represents an event listener that records certain events to Windows performance counters.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.Core.Events.DiagnosticsPerformanceCounterListener

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

The PerformanceCounterListener type exposes the following members.

Constructors
  NameDescription
Public methodPerformanceCounterListener
Initializes a new instance of the PerformanceCounterListener class.
Top
Methods
  NameDescription
Public methodConnectionAfterClosing
An event that occurs after a connection has been closed.
Public methodConnectionAfterOpening
An event that occurs after a connection has been opened.
Public methodConnectionAfterReceivingMessage
An event that occurs after a message has been received on a connection.
Public methodConnectionAfterSendingMessages
An event that occurs after a set of message has been sent.
Public methodConnectionBeforeClosing
An event that occurs before closing a connection.
Public methodConnectionBeforeOpening
An event that occurs before opening a connection.
Public methodConnectionBeforeReceivingMessage
An event that occurs before receiving a message on a connection.
Public methodConnectionBeforeSendingMessages
An event that occurs before sending a set of messages.
Public methodConnectionErrorOpening
An event that occurs when there is an error while opening a connection.
Public methodConnectionErrorReceivingMessage
An event that occurs when there is an an error while receiving a message.
Public methodConnectionErrorSendingMessages
An event that occurs when there is an error while sending a set of messages.
Public methodConnectionFailed
An event that occurs when a connection has failed.
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 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.)
Public methodStatic memberInstallPerformanceCounters
Installs the performance counters.
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