Table of Contents

Class ServerState

Namespace
RDCore.SDK.Server.Services.States
Assembly
RDCore.SDK.dll

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

Value ServerStateValue

The ServerStateValue value corresponding to this state.

Properties

ExitCode

The application exit code corresponding to the current ServerState.

public virtual int ExitCode { get; }

Property Value

int

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

ServerState

Running

Gets the Running server state.

public static ServerState Running { get; }

Property Value

ServerState

RunningTraceless

Gets the RunningTraceless server state.

public static ServerState RunningTraceless { get; }

Property Value

ServerState

RunningVerbose

Gets the RunningVerbose server state.

public static ServerState RunningVerbose { get; }

Property Value

ServerState

ShuttingDown

Gets the ShuttingDown server state.

public static ServerState ShuttingDown { get; }

Property Value

ServerState

Starting

Gets the Starting server state.

public static ServerState Starting { get; }

Property Value

ServerState

Value

public ServerStateValue Value { get; }

Property Value

ServerStateValue

Methods

Exiting(ServerStateValue)

Gets the Exiting server state for the specified current state.

public static ServerState Exiting(ServerStateValue state)

Parameters

state ServerStateValue

The ServerStateValue for the current server state.

Returns

ServerState