Skip to main content


DisconnectReason enumerates all disconnect reasons.

Namespace: System.Dynamic.ExpandoObject#
Assembly: transport.dll#
public enum DisconnectReason : byte

ClosedByRemoteIndicates the connection was closed remotely.
CountUsed only for count. Keep last and don't assign explicit values
DefaultIndicates a normal disconnection as a result of calling Disconnect on the connection.
MaxConnectionAttemptsIndicates the connection failed to establish a connection after maxConnectAttempts.
TimeoutIndicates the connection timed out.