Skip to content

Struct CloseReason

Why a connection closed: the message to show, and whether it ended in an error.

Declaration
public readonly struct CloseReason
Declaration
public string Message { get; }

True when the connection failed: a refused connect, a lost link, or a write error.

Declaration
public bool IsError { get; }

A close the far end or the program asked for.

Declaration
public static CloseReason Ended(string message)

DarkEffekt.Terminal.CloseReason

Type Name
System.String message

A close forced by a failure.

Declaration
public static CloseReason Failed(string message)

DarkEffekt.Terminal.CloseReason

Type Name
System.String message

Returns the fully qualified type name of this instance.

Declaration
public override string ToString()

System.String: The fully qualified type name.