/// <summary> /// Helper method to try and load the section during object initialization /// </summary> /// <returns></returns> private static TitleMapperModuleSectionHandler TryGetConfigurationSection() { TitleMapperModuleSectionHandler settings; try { settings = ConfigurationManager.GetSection("newtelligence.DasBlog.TitleMapper") as TitleMapperModuleSectionHandler; } catch { settings = new TitleMapperModuleSectionHandler(); settings.Exclusions = new ExclusionCollection(); //count will be zero } return settings; }
/// <summary> /// Helper method to try and load the section during object initialization /// </summary> /// <returns></returns> private static TitleMapperModuleSectionHandler TryGetConfigurationSection() { TitleMapperModuleSectionHandler settings; try { settings = ConfigurationManager.GetSection("newtelligence.DasBlog.TitleMapper") as TitleMapperModuleSectionHandler; } catch { settings = new TitleMapperModuleSectionHandler(); settings.Exclusions = new ExclusionCollection(); //count will be zero } return(settings); }