This commit is contained in:
2020-08-12 17:50:53 +00:00
parent e908868ed5
commit c065a4a3d5
6 changed files with 64 additions and 57 deletions

3
.vscode/launch.json vendored
View File

@@ -51,11 +51,10 @@
"AYANOVA_USE_URLS": "http://*:7575;", "AYANOVA_USE_URLS": "http://*:7575;",
"AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles", "AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles",
"AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles", "AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles",
"AYANOVA_SERVER_TEST_MODE":"false", "AYANOVA_SERVER_TEST_MODE": "true",
"AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small", "AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small",
"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-7", "AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-7",
"AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\PostgreSQLPortable_12.0\\App\\PgSQL\\bin\\" "AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\PostgreSQLPortable_12.0\\App\\PgSQL\\bin\\"
}, },
"sourceFileMap": { "sourceFileMap": {
"/Views": "${workspaceFolder}/Views" "/Views": "${workspaceFolder}/Views"

View File

@@ -129,7 +129,7 @@ namespace AyaNova.Api.Controllers
if (!Authorized.HasModifyRole(HttpContext.Items, AyaType.ServerState)) if (!Authorized.HasModifyRole(HttpContext.Items, AyaType.ServerState))
return StatusCode(403, new ApiNotAuthorizedResponse()); return StatusCode(403, new ApiNotAuthorizedResponse());
log.LogInformation($"Server shut down requested by user {UserNameFromContext.Name(HttpContext.Items)}, server shutting down now..."); log.LogInformation($"### Server shut down requested by user {UserNameFromContext.Name(HttpContext.Items)}, triggering shut down event now...");
_appLifetime.StopApplication(); _appLifetime.StopApplication();
return Accepted(); return Accepted();

View File

@@ -1914,5 +1914,7 @@
"GlobalLogo": "Geschäftslogos", "GlobalLogo": "Geschäftslogos",
"SmallLogo": "Kleines Logo", "SmallLogo": "Kleines Logo",
"MediumLogo": "Mittelgroßes Logo", "MediumLogo": "Mittelgroßes Logo",
"LargeLogo":"Großes Logo" "LargeLogo": "Großes Logo",
"ShutDownServer": "Server herunterfahren",
"AreYouSureShutDown": "Sind Sie sicher, dass Sie den Server herunterfahren möchten?"
} }

View File

@@ -1914,5 +1914,7 @@
"GlobalLogo": "Business logos", "GlobalLogo": "Business logos",
"SmallLogo": "Small sized logo", "SmallLogo": "Small sized logo",
"MediumLogo": "Medium sized logo", "MediumLogo": "Medium sized logo",
"LargeLogo":"Large sized logo" "LargeLogo": "Large sized logo",
"ShutDownServer": "Shut down server",
"AreYouSureShutDown": "Are you certain you want to shut down the server?"
} }

View File

@@ -1914,5 +1914,7 @@
"GlobalLogo": "Logotipos comerciales", "GlobalLogo": "Logotipos comerciales",
"SmallLogo": "Logotipo de tamaño pequeño", "SmallLogo": "Logotipo de tamaño pequeño",
"MediumLogo": "Logotipo de tamaño mediano", "MediumLogo": "Logotipo de tamaño mediano",
"LargeLogo":"Logotipo de gran tamaño" "LargeLogo": "Logotipo de gran tamaño",
"ShutDownServer": "Apagar el servidor",
"AreYouSureShutDown": "¿Estás segura de que quieres cerrar el servidor?"
} }

View File

@@ -1914,5 +1914,7 @@
"GlobalLogo": "Logos d'entreprise", "GlobalLogo": "Logos d'entreprise",
"SmallLogo": "Logo de petite taille", "SmallLogo": "Logo de petite taille",
"MediumLogo": "Logo de taille moyenne", "MediumLogo": "Logo de taille moyenne",
"LargeLogo":"Logo de grande taille" "LargeLogo": "Logo de grande taille",
"ShutDownServer": "Arrêter le serveur",
"AreYouSureShutDown": "Êtes-vous certain de vouloir arrêter le serveur?"
} }