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

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

The ClusterListenerPair type exposes the following members.

Constructors
  NameDescription
Public methodClusterListenerPair
Initializes a new instance of the ClusterListenerPair class.
Top
Methods
  NameDescription
Public methodClusterAfterAddingServer
An event that occurs after a server has been added to a cluster.
Public methodClusterAfterClosing
An event that occurs after a cluster has been closed.
Public methodClusterAfterDescriptionChanged
An event that occurs after a cluster's description has changed.
Public methodClusterAfterOpening
An event that occurs after a cluster has been opened.
Public methodClusterAfterRemovingServer
An event that occurs after a server has been removed from a cluster.
Public methodClusterBeforeAddingServer
An event that occurs before adding a server to a cluster.
Public methodClusterBeforeClosing
An event that occurs before closing a cluster.
Public methodClusterBeforeOpening
An event that occurs before opening a cluster.
Public methodClusterBeforeRemovingServer
An event that occurs before removing a server from a cluster.
Public methodStatic memberCreate
Combines two cluster 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