I am migrating a project from .net Web Application to .Net core Web API.
I am using HTTP Module which is .net framework class library, in IIS Integrated mode.
So, thought to port as it is, to my new core app.
I pasted web.config to my new core app and added a project reference to that Http Module and it started working.
I am having some Context.Response.Write in my BeginRequest method, and I can see those lines whenever I am making a call to my web api.
But, I am having some questions here.
Could some one share some inputs on above points.
Thx.
ASP.NET Core has no support for HTTP modules, the pipeline has been completely redesigned. It's only being invokved because you told IIS to run it, but it won't have any visibility as far as your application is concerned (IIS is "external" to your application in the Core world).
Microsoft has some decent documentation around converting to the new middleware system here (far too much to re-post or condense into an answer):
https://learn.microsoft.com/en-us/aspnet/core/migration/http-modules
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With