Пример #1
0
        public void RefreshCacheSettings(string configLocation = "")
        {
            /*
             * try
             * {
             *  ConfigurationManager.RefreshSection(CacheProvider.CACHE_SECTION_NAME);
             *  if (cacheConfigSection != null && cacheConfigSection.Length > 0)
             *      ConfigurationManager.RefreshSection(cacheConfigSection);
             * }
             * catch { }
             */

            lock (m_CacheProvider)
            {
                m_CacheProvider.Refresh();
            }
        }
Пример #2
0
        public void RefreshCacheSettings(string configLocation = "")
        {
            lock (m_CacheProvider)
            {
                try
                {
                    ConfigurationManager.RefreshSection(CacheProvider.CACHE_SECTION_NAME);
                    if (configLocation != null && configLocation.Length > 0)
                    {
                        ConfigurationManager.RefreshSection(configLocation);
                    }
                }
                catch { }

                m_CacheProvider.Refresh();
            }
        }