FiftyOne.Foundation.Mobile.Detection.WebProvider.GetActiveProvider C# (CSharp) Method

GetActiveProvider() static private method

A reference to the active provider.
static private GetActiveProvider ( ) : WebProvider
return WebProvider
        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;
        }