Skip to content

Help for ordering of app.UseXXXX #17031

@ghost

Description

It can be hard to remember the correct ordering of middleware when building an app. The information is already on this page but I think it would be great to see the full list of built-in middleware (e.g. from https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-3.1#built-in-middleware) listed as pseudo code like the example in "Middleware order" (https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-3.1#middleware-order). The description from the "Built-in middleware" table could be comments in the code. Would be a great reference/cheat sheet. Discussed here:
https://twitter.com/davidfowl/status/1228902288627912705


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions