Is there a way to handle the application_start “event” without using the global.asax?
The best I can come up with is an HttpModule that checks some static variable on every begin_request, which is INCREDIBLY wasteful 🙁
Do I have any other options?
Thanks
AFAIK, the reflection-based “pseudo-events” in Global.asax are not accessible in any other way than by reflection. However, for the application_start event, you might be able to achieve similar functionality by overriding the Init() method on a subclass of HttpApplication. Some functionality might not be accessible, as it probably fires on a slightly different point in the lifecycle.
Alternatively, if you’re going with an HttpModule, couldn’t you just use the Init() method instead of begin_request?