Click or drag to resize

ConnectionClosedReason Enumeration

Represents the reason a connection was closed.

Namespace:  MongoDB.Driver.Core.Events
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax
public enum ConnectionClosedReason
Members
  Member nameValueDescription
Stale0 The pool was cleared, making the connection no longer valid.
Idle1 The connection became stale by being available for too long.
Error2 The connection experienced an error, making it no longer valid.
PoolClosed3 The pool was closed, making the connection no longer valid.
Unknown4 The reason the connection was closed is unknown.
See Also