Application_Start
and Application_End
are called only once during the lifetime of the application domain – thus they aren’t called for each HttpApplication
instance
Application_Start
runs when first user requests a page, thus when the first instance of the HttpApplication
class is created, while Application_End
runs when the last instance of an HttpApplication
class is destroyed.
But what if at the time of application domain being restarted there wasn’t any user requests and thus no HttpApplication
instances created? Will in that case Application_End
still be fired?
Thank you