diff --git a/WebApp/ImageGenerator.cs b/WebApp/ImageGenerator.cs index 3883476..4e1cdac 100644 --- a/WebApp/ImageGenerator.cs +++ b/WebApp/ImageGenerator.cs @@ -6,7 +6,6 @@ public class ImageGenerator { public byte[] GenerateImage3(RequestBody requestBody) { - var start = DateTime.Now; string[] inputs = requestBody.CanvasRect.Split(":"); double scale = requestBody.OutputScale; Coordinate a1 = new Coordinate("A1"); @@ -60,9 +59,6 @@ public class ImageGenerator }); var result = canvas.ImEncode(); - var end = DateTime.Now; - var elapsed = end - start; - Console.WriteLine($"Elapsed: {elapsed.TotalMilliseconds} ms"); return result; } diff --git a/WebApp/Properties/launchSettings.json b/WebApp/Properties/launchSettings.json index 7e66a20..d225a87 100644 --- a/WebApp/Properties/launchSettings.json +++ b/WebApp/Properties/launchSettings.json @@ -12,26 +12,28 @@ "http": { "commandName": "Project", "dotnetRunMessages": true, - "launchBrowser": true, + "launchBrowser": false, "launchUrl": "swagger", - "applicationUrl": "http://localhost:5184", + "applicationUrl": "http://localhost:80", "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" + "ASPNETCORE_ENVIRONMENT": "Development", + "ASSET_PATH_RO" : "D:/tiles1705/" } }, "https": { "commandName": "Project", "dotnetRunMessages": true, - "launchBrowser": true, + "launchBrowser": false, "launchUrl": "swagger", - "applicationUrl": "https://localhost:7224;http://localhost:5184", + "applicationUrl": "https://localhost:4430;http://localhost:80", "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" + "ASPNETCORE_ENVIRONMENT": "Development", + "ASSET_PATH_RO" : "D:/tiles1705/" } }, "IIS Express": { "commandName": "IISExpress", - "launchBrowser": true, + "launchBrowser": false, "launchUrl": "swagger", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development"