A
APA
In the Application_Start event I load several static variables with data from the database that are critical to the execution of the application.
My question is that during app start if a second request comes in before app start is complete does it wait for app start to complete or does it go
straight to BeginRequest? It appears in some cases that begin request is being called before app start is finished. We know this because we test for
this static variable being null in BeginRequest. So, do I need to do Application.Lock() and Application.UnLock() in Application_OnStart to prevent
any requests from being processed until app start is complete? I would have thought that the default behavior would be to lock the application until
it is started.
Thx.
My question is that during app start if a second request comes in before app start is complete does it wait for app start to complete or does it go
straight to BeginRequest? It appears in some cases that begin request is being called before app start is finished. We know this because we test for
this static variable being null in BeginRequest. So, do I need to do Application.Lock() and Application.UnLock() in Application_OnStart to prevent
any requests from being processed until app start is complete? I would have thought that the default behavior would be to lock the application until
it is started.
Thx.