ShutdownReason
A class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Models.Responses.
Why a game server shut down, as a message and whether the shutdown was expected.
- Listed in Alta.Api.DataTransferModels
Constructors
| Member | What it is |
|---|---|
ShutdownReason(string reason, bool isExpected) | Creates a ShutdownReason with default values. |
ShutdownReason(string reason) | Creates a ShutdownReason with default values. |
ShutdownReason() | Creates a ShutdownReason with default values. |
Properties
| Member | What it is |
|---|---|
bool IsExpected { get; set; } | True for a planned shutdown, false for a crash or other surprise. |
string Reason { get; set; } | Free-text reason for the shutdown. |
Methods
| Member | What it is |
|---|---|
override string ToString() | Returns the reason and the expected flag as one line. |
Used in
Members of other types that take, return or hold a ShutdownReason:
IServerAccess.StopAsync, LocalServerAccess.StopAsync, ServerAccess.StopAsync, LowLevelApiClient.StopServerSession, ServerCommandModule.ShutdownPostMigration, ServerHandler.OnServerStopped, ServerHandler.StopAsync, ServerHandler.StopForMigration, ApplicationManager.ExternalOnApplicationQuit, ApplicationManager.shutdownReason.