cleanup, modify launch settings
This commit is contained in:
parent
e2702c00ee
commit
8a8e90d10b
2 changed files with 9 additions and 11 deletions
|
|
@ -6,7 +6,6 @@ public class ImageGenerator
|
||||||
{
|
{
|
||||||
public byte[] GenerateImage3(RequestBody requestBody)
|
public byte[] GenerateImage3(RequestBody requestBody)
|
||||||
{
|
{
|
||||||
var start = DateTime.Now;
|
|
||||||
string[] inputs = requestBody.CanvasRect.Split(":");
|
string[] inputs = requestBody.CanvasRect.Split(":");
|
||||||
double scale = requestBody.OutputScale;
|
double scale = requestBody.OutputScale;
|
||||||
Coordinate a1 = new Coordinate("A1");
|
Coordinate a1 = new Coordinate("A1");
|
||||||
|
|
@ -60,9 +59,6 @@ public class ImageGenerator
|
||||||
});
|
});
|
||||||
|
|
||||||
var result = canvas.ImEncode();
|
var result = canvas.ImEncode();
|
||||||
var end = DateTime.Now;
|
|
||||||
var elapsed = end - start;
|
|
||||||
Console.WriteLine($"Elapsed: {elapsed.TotalMilliseconds} ms");
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,26 +12,28 @@
|
||||||
"http": {
|
"http": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"dotnetRunMessages": true,
|
"dotnetRunMessages": true,
|
||||||
"launchBrowser": true,
|
"launchBrowser": false,
|
||||||
"launchUrl": "swagger",
|
"launchUrl": "swagger",
|
||||||
"applicationUrl": "http://localhost:5184",
|
"applicationUrl": "http://localhost:80",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development",
|
||||||
|
"ASSET_PATH_RO" : "D:/tiles1705/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"https": {
|
"https": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"dotnetRunMessages": true,
|
"dotnetRunMessages": true,
|
||||||
"launchBrowser": true,
|
"launchBrowser": false,
|
||||||
"launchUrl": "swagger",
|
"launchUrl": "swagger",
|
||||||
"applicationUrl": "https://localhost:7224;http://localhost:5184",
|
"applicationUrl": "https://localhost:4430;http://localhost:80",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development",
|
||||||
|
"ASSET_PATH_RO" : "D:/tiles1705/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"IIS Express": {
|
"IIS Express": {
|
||||||
"commandName": "IISExpress",
|
"commandName": "IISExpress",
|
||||||
"launchBrowser": true,
|
"launchBrowser": false,
|
||||||
"launchUrl": "swagger",
|
"launchUrl": "swagger",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue