Table of Contents

Namespace MongoDB.Driver.Core.Events

The MongoDB.Driver.Core.Events namespace contains classes related to events.

Classes

ReflectionEventSubscriber

Subscribes methods with a single argument to events of that single argument's type.

SingleEventSubscriber<TSingleEvent>

Subscriber for a single type of event.

Structs

ClusterAddedServerEvent

Occurs after a server is added to the cluster.

ClusterAddingServerEvent

Occurs before a server is added to the cluster.

ClusterClosedEvent

Occurs after a cluster is closed.

ClusterClosingEvent

Occurs before a cluster is closed.

ClusterDescriptionChangedEvent

Occurs when a cluster has changed.

ClusterOpenedEvent

Occurs after a cluster is opened.

ClusterOpeningEvent

Occurs before a cluster is opened.

ClusterRemovedServerEvent

Occurs after a server has been removed from the cluster.

ClusterRemovingServerEvent

Occurs before a server is removed from the cluster.

ClusterSelectedServerEvent

Occurs after a server is selected.

ClusterSelectingServerEvent

Occurs before a server is selected.

ClusterSelectingServerFailedEvent

Occurs when selecting a server fails.

CommandFailedEvent

Occurs when a command has failed.

CommandStartedEvent

Occurs when a command has started.

CommandSucceededEvent

Occurs when a command has succeeded.

ConnectionClosedEvent

Occurs after a connection is closed.

ConnectionClosingEvent

Occurs before a connection is closed.

ConnectionCreatedEvent

Occurs when a connection is created.

ConnectionFailedEvent

Occurs when a connection fails.

ConnectionOpenedEvent

Occurs after a connection is opened.

ConnectionOpeningEvent

Occurs before a connection is opened.

ConnectionOpeningFailedEvent

Occurs when a connection fails to open.

ConnectionPoolAddedConnectionEvent

Occurs after a connection is added to the pool.

ConnectionPoolAddingConnectionEvent

Occurs before a connection is added to the pool.

ConnectionPoolCheckedInConnectionEvent

Occurs after a connection is checked in to the pool.

ConnectionPoolCheckedOutConnectionEvent

Occurs after a connection is checked out of the pool.

ConnectionPoolCheckingInConnectionEvent

Occurs before a connection is checked in to the pool.

ConnectionPoolCheckingOutConnectionEvent

Occurs before a connection is checked out of the pool.

ConnectionPoolCheckingOutConnectionFailedEvent

Occurs when a connection could not be checked out of the pool.

ConnectionPoolClearedEvent

Occurs after the pool is cleared.

ConnectionPoolClearingEvent

Occurs when the pool is about to be cleared.

ConnectionPoolClosedEvent

Occurs after the pool is closed.

ConnectionPoolClosingEvent

Occurs before the pool is closed.

ConnectionPoolOpenedEvent

Occurs after the pool is opened.

ConnectionPoolOpeningEvent

Occurs before the pool is opened.

ConnectionPoolReadyEvent

Occurs after the pool is opened.

ConnectionPoolRemovedConnectionEvent

Occurs after a connection is removed from the pool.

ConnectionPoolRemovingConnectionEvent

Occurs before a connection is removed from the pool.

ConnectionReceivedMessageEvent

Occurs after a message is received.

ConnectionReceivingMessageEvent

Occurs before a message is received.

ConnectionReceivingMessageFailedEvent

Occurs when a message was unable to be received.

ConnectionSendingMessagesEvent

Occurs before a message is sent.

ConnectionSendingMessagesFailedEvent

Occurs when a message could not be sent.

ConnectionSentMessagesEvent

Occurs after a message has been sent.

SdamInformationEvent

An informational event used for logging Server Discovery and Monitoring (SDAM) events.

ServerClosedEvent

Occurs after a server is closed.

ServerClosingEvent

Occurs before a server is closed.

ServerDescriptionChangedEvent

Occurs after a server's description has changed.

ServerHeartbeatFailedEvent

Occurs when a heartbeat failed.

ServerHeartbeatStartedEvent

Occurs before heartbeat is issued.

ServerHeartbeatSucceededEvent

Occurs when a heartbeat succeeded.

ServerOpenedEvent

Occurs after a server is opened.

ServerOpeningEvent

Occurs before a server is opened.

Interfaces

IEventSubscriber

A subscriber to events.

Enums

ConnectionCheckOutFailedReason

Represents the reason an attempt to check out a connection failed.

ConnectionClosedReason

Represents the reason a connection was closed.