Async handler implementation
You can now use IQueryHandlerAsync to execute the query in await/async context π
New Async
[HttpPost]
public async Task<IQueryExecutionResult> Read(
[FromServices]YourContext context,
[FromServices]IQueryHandlerAsync handler,
[FromBody]IQueryCriteria criteria)
{
IQueryable<OfSomething> query = context.Somethings;
var result = await handler.ExecuteAsync(query, criteria);
return result;
}