Upgrade to .net9
This commit is contained in:
parent
eb97cfb57c
commit
a1cb6592eb
15 changed files with 395 additions and 54 deletions
|
|
@ -1,3 +1,4 @@
|
|||
using System.IO.Pipelines;
|
||||
using StitchATon2.App.Models;
|
||||
using StitchATon2.Domain;
|
||||
using StitchATon2.Domain.ImageCreators;
|
||||
|
|
@ -19,4 +20,10 @@ public static class Utils
|
|||
var imageCreator = new ImageCreator(section);
|
||||
await imageCreator.WriteToStream(stream, scale!.Value);
|
||||
}
|
||||
|
||||
public static async Task DangerousWriteToPipe(this GridSection section, PipeWriter pipeWriter, float? scale)
|
||||
{
|
||||
var imageCreator = new DangerousImageCreator(section);
|
||||
await imageCreator.WriteToPipe(pipeWriter, scale!.Value);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue