Skip to content

Conversation

@twsouthwick
Copy link
Member

On ASP.NET Framework, HttpResponse.End() would flush everything and terminate the pipeline at the next available moment (sometimes it would raise a ThreadAbortException, but not always). To mimic this, we can add an MVC filter that will remove any result that may have been added so that the MVC pipeline will not attempt to write anything.

Fixes #111

@twsouthwick twsouthwick merged commit 98f2597 into main Aug 6, 2022
@twsouthwick twsouthwick deleted the tasou/response-end branch August 6, 2022 01:08
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.

Response.End not working inside Razor Class Library

3 participants