Skip to content
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
@javiercn

Description

@javiercn

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions