This commit is contained in:
@@ -123,7 +123,7 @@ namespace AyaNova.Api.ControllerHelpers
|
||||
throw new System.NotSupportedException("ApiServerState:ApiErrorCode - No error code is associated with server state OPEN");
|
||||
case ServerState.OpsOnly:
|
||||
return ApiErrorCode.API_OPS_ONLY;
|
||||
case ServerState.MigrateMode:
|
||||
case ServerState.MigrateMode:
|
||||
return ApiErrorCode.API_MIGRATE_MODE;
|
||||
case ServerState.Closed:
|
||||
return ApiErrorCode.API_CLOSED;
|
||||
@@ -173,6 +173,14 @@ namespace AyaNova.Api.ControllerHelpers
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsMigrateMode
|
||||
{
|
||||
get
|
||||
{
|
||||
return _currentState == ServerState.MigrateMode && !SYSTEM_LOCK;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsOpen
|
||||
{
|
||||
get
|
||||
@@ -190,13 +198,13 @@ namespace AyaNova.Api.ControllerHelpers
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsOpenOrOpsOnly
|
||||
{
|
||||
get
|
||||
{
|
||||
return (IsOpen || IsOpsOnly) && !SYSTEM_LOCK;
|
||||
}
|
||||
}
|
||||
// public bool IsOpenOrOpsOnly
|
||||
// {
|
||||
// get
|
||||
// {
|
||||
// return (IsOpen || IsOpsOnly) && !SYSTEM_LOCK;
|
||||
// }
|
||||
// }
|
||||
|
||||
public bool IsSystemLocked
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user