Hook into Application_Start in a HttpModule

前端 未结 6 513
太阳男子
太阳男子 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:22

    How does one know whether the Init() with the Lock code will be the first of the modules to get called? Surely other modules might be instantiated first? Isn't that the difference for Global.asax's Application_Start event - that it's guaranteed to be first to be called by design?

提交回复
热议问题