This commit is contained in:
2021-03-03 00:50:15 +00:00
parent 1b07953f59
commit eec26f92de
9 changed files with 53 additions and 15 deletions

View File

@@ -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
{