dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.23k stars 9.96k forks source link

[Route Groups] Implement IApplicationBuilder to support grouped middleware #41431

Open halter73 opened 2 years ago

halter73 commented 2 years ago

We want MapGroup to support middleware via the IApplicationBuilder interface so things like UseResponseCompression(), UseHttpLogging(), UseForwardedHeaders(), UseRequestLocalization(), terminal middleware like UseStaticFiles() and more can be called on a group.

Describe the solution you'd like

This still needs design, but there are a lot of open questions. We still need to figure out how we define a middleware that runs every time a route handler in a given group is hit. before running the endpoint and similar middleware from inner groups?

ghost commented 2 years ago

Thanks for contacting us.

We're moving this issue to the .NET 7 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s). If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.