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.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
Syntax public enum ConnectionClosedReason
Public Enumeration ConnectionClosedReason
type ConnectionClosedReason
Members
| Member name | Value | Description |
---|
| Stale | 0 |
The pool was cleared, making the connection no longer valid.
|
| Idle | 1 |
The connection became stale by being available for too long.
|
| Error | 2 |
The connection experienced an error, making it no longer valid.
|
| PoolClosed | 3 |
The pool was closed, making the connection no longer valid.
|
| Unknown | 4 |
The reason the connection was closed is unknown.
|
See Also