Skip to content

Move HttpApplication middleware into UseSystemWebAdapters #407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 4, 2023

Conversation

twsouthwick
Copy link
Member

This was initially moved into the startup filter to be added early on in the request pipeline because it was thought it was needed there for output caching. However, that does not seem to be the case (test has been added for that). So, now it can be moved into the standard UseSystemWebAdapters() so that it will be only added on requests that needed it (i.e. if the pipeline has been branched and UseSystemWebAdapters() is not added).

Fixes #405

This was initially moved into the startup filter to be added early on in the request pipeline because it was thought it was needed there for output caching. However, that does not seem to be the case (test has been added for that). So, now it can be moved into the standard `UseSystemWebAdapters()` so that it will be only added on requests that needed it (i.e. if the pipeline has been branched and `UseSystemWebAdapters()` is not added).
@twsouthwick twsouthwick requested a review from Tratcher October 4, 2023 00:21
@twsouthwick twsouthwick enabled auto-merge (squash) October 4, 2023 17:29
@twsouthwick twsouthwick merged commit 9dc120c into main Oct 4, 2023
@twsouthwick twsouthwick deleted the move-httpapplication-into-main branch October 4, 2023 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HttpApplicationMiddleware is used even not setting app.UseSystemWebAdapters
2 participants