System.ComponentModel.LicenseManager.CacheProvider C# (CSharp) Method

CacheProvider() private static method

Caches the provider, both in the instance cache, and the type cache.
private static CacheProvider ( Type type, LicenseProvider provider ) : void
type Type
provider LicenseProvider
return void
        private static void CacheProvider(Type type, LicenseProvider provider)
        {
            if (s_providers == null)
            {
                s_providers = new Hashtable();
            }
            s_providers[type] = provider;

            if (provider != null)
            {
                if (s_providerInstances == null)
                {
                    s_providerInstances = new Hashtable();
                }
                s_providerInstances[provider.GetType()] = provider;
            }
        }