Struct CloseReason
Why a connection closed: the message to show, and whether it ended in an error.
Assembly: DarkEffekt.Terminal.Core
Section titled “Assembly: DarkEffekt.Terminal.Core”public readonly struct CloseReasonProperties
Section titled “Properties”Message
Section titled “Message”public string Message { get; }IsError
Section titled “IsError”True when the connection failed: a refused connect, a lost link, or a write error.
public bool IsError { get; }Methods
Section titled “Methods”Ended(string)
Section titled “Ended(string)”A close the far end or the program asked for.
public static CloseReason Ended(string message)Returns
Section titled “Returns”DarkEffekt.Terminal.CloseReason
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.String |
message |
Failed(string)
Section titled “Failed(string)”A close forced by a failure.
public static CloseReason Failed(string message)Returns
Section titled “Returns”DarkEffekt.Terminal.CloseReason
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.String |
message |
ToString()
Section titled “ToString()”Returns the fully qualified type name of this instance.
public override string ToString()Returns
Section titled “Returns”System.String: The fully qualified type name.