Class ServerState
The base ServerState abstraction.
public abstract record ServerState : IEquatable<ServerState>
- Inheritance
-
ServerState
- Implements
- Derived
- Inherited Members
Constructors
ServerState(ServerStateValue)
The base ServerState abstraction.
protected ServerState(ServerStateValue Value)
Parameters
ValueServerStateValueThe ServerStateValue value corresponding to this state.
Properties
ExitCode
The application exit code corresponding to the current ServerState.
public virtual int ExitCode { get; }
Property Value
Remarks
⚠️ Returns an error code unless overridden in a more specialized state.
Initializing
Gets the Initializing server state.
public static ServerState Initializing { get; }
Property Value
Running
Gets the Running server state.
public static ServerState Running { get; }
Property Value
RunningTraceless
Gets the RunningTraceless server state.
public static ServerState RunningTraceless { get; }
Property Value
RunningVerbose
Gets the RunningVerbose server state.
public static ServerState RunningVerbose { get; }
Property Value
ShuttingDown
Gets the ShuttingDown server state.
public static ServerState ShuttingDown { get; }
Property Value
Starting
Gets the Starting server state.
public static ServerState Starting { get; }
Property Value
Value
public ServerStateValue Value { get; }
Property Value
Methods
Exiting(ServerStateValue)
Gets the Exiting server state for the specified current state.
public static ServerState Exiting(ServerStateValue state)
Parameters
stateServerStateValueThe ServerStateValue for the current server state.