Hook into Application_Start in a HttpModule

前端 未结 6 507
太阳男子
太阳男子 2020-12-16 02:13

I’m implementing a simple HttpModule, where I want some code to run when the web application is started. But I’m surprised to find that the Application_Start event I would n

6条回答
  •  既然无缘
    2020-12-16 02:25

    I got interested in this thread and how a website started while fixing an bug in an old ASP.NET site.

    So I put together a demo, to see how it would work. Seems the order IS from the web.config.

    You can see here https://github.com/jradxl/MVC-Website-Without-Global.asax.cs It implements Robert Koritnik solution - thanks

提交回复
热议问题