Async command parsing in ImageSharp.Web #99
|
I have a use case where I need to set a default focal/anchor point (parameter Since most calls would complete synchronously, the API is returning ValueTask to avoid allocating a task when it's not needed. public interface SixLabors.ImageSharp.Web.Commands.IRequestParser
{
// existing API
// IDictionary<string, string> ParseRequestCommands(HttpContext context);
// new API
ValueTask<IDictionary<string, string>> ParseRequestCommandsAsync(HttpContext context);
}I've implemented it in https://github.com/wagich/ImageSharp.Web/tree/async-command-parsing |
Answered by
JimBobSquarePants
Jul 6, 2020
Replies: 1 comment 8 replies
|
Hi @wagich that sounds like something you would do via the OnParseCommands event. Do you have a single focal point reused across all images or one per image? |
8 replies
Answer selected by
wagich
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @wagich that sounds like something you would do via the OnParseCommands event.
Do you have a single focal point reused across all images or one per image?