can asp.net core use HttpModule?

mc 4,476 Reputation points
2024-07-16T09:33:34.04+00:00

If I create HttpModule in c++(IIS Module)

can asp.net core use it? if I do not use IIS.

I use kestrel to run asp.net core.

I can not use it right?

Is there any other Module I can use it? I can use c++ to write dll and asp.net core use it?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,553 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 65,131 Reputation points
    2024-07-16T15:26:01.1966667+00:00

    asp.net core uses middleware rather than modules.

    https://learn.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-8.0

    you can easily write custom middleware that call c++. on windows only, you might be able to write the middleware in managed c++, but I'm not sure.

    note: middleware does not implement the httpmodule application events.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.