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 |
Beta Was this translation helpful? Give feedback.
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? |
Beta Was this translation helpful? Give feedback.
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?