Skip to content

Inconsistent order of middleware in the example configuration #28467

@nemanja228

Description

@nemanja228

The first code snippet shows
app.UseHttpLogging();
being called immediately after
var app = builder.Build();

All following snippets invoke
app.UseHttpLogging();
after
app.UseStaticFiles();

I believe it would be good that official documentation also suggests the correct position for this kind of middleware in the pipeline.


Document Details

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

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions