This repository was archived by the owner on Nov 20, 2018. It is now read-only.
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
Consider looking for InvokeAsync too when configuring middleware through UseMiddleware #786
Closed
Description
UseMiddleware() will fail if your middleware has InvokeAsync instead of Invoke (which is a very common pattern) (VS will add Async suffix when you ctrl+. and a lot of people follow that convention)
We probably want to also change IMiddleware to support this in some way.
https://github.com/aspnet/HttpAbstractions/blob/dev/src/Microsoft.AspNetCore.Http.Abstractions/IMiddleware.cs#L23