/// <summary> /// Initializes the config. /// </summary> private static void InitializeConfig() { InitializeConfig("Expergent"); if (options == null) { InitializeConfig("expergent"); } if (options == null) { options = new ExpergentOptions(); } }
/// <summary> /// Initializes the config. /// </summary> /// <param name="sectionName">Name of the section.</param> private static void InitializeConfig(string sectionName) { options = ConfigurationManager.GetSection(sectionName) as ExpergentOptions; }