Skip to main content

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.

Constructors​

MemberWhat 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​

MemberWhat 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​

MemberWhat 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: