ASP.NET HttpApplication lifecycle

前端 未结 2 2000
一整个雨季
一整个雨季 2021-01-17 17:20

Does the HttpApplication class extended by Global.asax.cs exist for the lifetime of the application?

At what point can instances be created/destroyed?

I\'m e

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-17 17:39

    If you are seeing the event twice in your logs, check that the application pool is set to spawn a single worker process. Each worker process will create its own instance of the HttpAppication.

提交回复
热议问题