Click or drag to resize
IConnectionListener Interface
This API is preliminary and subject to change.
Represents a listener to connection events.

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

The IConnectionListener type exposes the following members.

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.
Top
See Also