internal OutputCacheProviderCollection CreateProviderCollection() { ProviderSettingsCollection configProviders = this.Providers; if ((configProviders == null) || (configProviders.Count == 0)) { return(null); } OutputCacheProviderCollection providers = new OutputCacheProviderCollection(); ProvidersHelper.InstantiateProviders(configProviders, providers, typeof(OutputCacheProvider)); providers.SetReadOnly(); return(providers); }
internal OutputCacheProviderCollection CreateProviderCollection() { // if there are no providers defined, we'll default to the v2.0 OutputCache ProviderSettingsCollection providers = Providers; if (providers == null || providers.Count == 0) { return(null); } OutputCacheProviderCollection collection = new OutputCacheProviderCollection(); ProvidersHelper.InstantiateProviders(providers, collection, typeof(OutputCacheProvider)); collection.SetReadOnly(); return(collection); }