Add delegate to Application Start in HTTP Module

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In the Init Method, I would like to add a delegate to the Application_Start.
However the Application_Start is not an event of the HTTPApplication class.
Is there some other way to access this event?
 
What are you trying to do? Application events are app wide, where a module
is typically request wide - thus the app start event does not occur when a
module request comes through the pipeline or it would happen on every
request. Best place for application start is in global.asax.

If you want to attache a delegate, let Init track whether app_start was
already handled using some static boolean (ie first request) - if not then
invoke some code, otherwise dont.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 
Back
Top