internal static WebProvider GetActiveProvider()
{
if (_activeProviderCreated == false)
{
lock (_lock)
{
if (_activeProviderCreated == false)
{
_activeProvider = Create();
// The DetectorModule should set to listen for the
// application reycling or shutting down. This is belt
// and braces in case thte HttpModule method fails to
// fire the application end event.
AppDomain.CurrentDomain.ProcessExit += OnProcessExit;
_activeProviderCreated = true;
}
}
}
return _activeProvider;
}