Upgrade to .net9
This commit is contained in:
parent
eb97cfb57c
commit
a1cb6592eb
15 changed files with 395 additions and 54 deletions
|
|
@ -24,7 +24,7 @@ public static class ImageController
|
|||
|
||||
await tileManager
|
||||
.CreateSection(dto)
|
||||
.WriteToStream(response.Body, dto.OutputScale);
|
||||
.DangerousWriteToPipe(response.BodyWriter, dto.OutputScale);
|
||||
|
||||
await response.CompleteAsync();
|
||||
}
|
||||
|
|
@ -47,7 +47,7 @@ public static class ImageController
|
|||
var scale = float.Clamp(480f / int.Max(section.Width, section.Height), 0.01f, 1f);
|
||||
Console.WriteLine($"Generate random image for {coordinatePair} scale: {scale}");
|
||||
|
||||
await section.WriteToStream(response.Body, scale);
|
||||
await section.DangerousWriteToPipe(response.BodyWriter, scale);
|
||||
await response.CompleteAsync();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue