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

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

The ConnectionListenerPair type exposes the following members.

Constructors
  NameDescription
Public methodConnectionListenerPair
Initializes a new instance of the ConnectionListenerPair 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 methodStatic memberCreate
Combines two connection 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