예제 #1
0
 internal static bool IsEnabled()
 {
     if (_searchSiteMapSection == null)
     {
         _searchSiteMapSection = SearchSiteMapSection.GetConfigurationSection();
     }
     return(_searchSiteMapSection.Enabled);
 }
예제 #2
0
        internal static List <SearchSiteMapProviderBase> InitFromConfig()
        {
            List <SearchSiteMapProviderBase> list = new List <SearchSiteMapProviderBase>();

            SearchSiteMapSection sectionSiteMapSection = SearchSiteMapSection.GetConfigurationSection();

            foreach (ProviderSettings ps in sectionSiteMapSection.Providers)
            {
                SearchSiteMapProviderBase _provider = ProvidersHelper.InstantiateProvider(ps, Type.GetType(ps.Type)) as SearchSiteMapProviderBase;
                list.Add(_provider);
            }

            return(list);
        }