Application_Start ASP.NET

后端 未结 1 592
逝去的感伤
逝去的感伤 2020-12-31 23:52

If get this from the Microsoft official documentation:

The Application_Start and Application_End methods are special methods that do not represent Htt

1条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-01 00:20

    As the documentation says, the events are linked to the lifetime of the application domain, which in practice means the app pool which the application is running in. Application_Start will fire again if the app pool is recycled for any reason - a change to web.config, for example.

    0 讨论(0)
提交回复
热议问题