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

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

The ServerListenerPair type exposes the following members.

Constructors
  NameDescription
Public methodServerListenerPair
Initializes a new instance of the ServerListenerPair class.
Top
Methods
  NameDescription
Public methodStatic memberCreate
Combines two server 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 methodServerAfterClosing
An event that occurs after server has been closed.
Public methodServerAfterDescriptionChanged
An event that occurs after a server's description has changed.
Public methodServerAfterHeartbeating
An event that occurs after a heartbeat has been sent to a server.
Public methodServerAfterOpening
An event that occurs after a server has been opened.
Public methodServerBeforeClosing
An event that occurs before closing a server.
Public methodServerBeforeHeartbeating
An event that occurs before sending a heartbeat to a server.
Public methodServerBeforeOpening
An event that occurs before opening a server.
Public methodServerErrorHeartbeating
An event that occurs when there is an error while sending a heartbeat to a server.
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