Exemple #1
0
        /// <summary>
        /// Initializes the config.
        /// </summary>
        private static void InitializeConfig()
        {
            InitializeConfig("Expergent");

            if (options == null)
            {
                InitializeConfig("expergent");
            }

            if (options == null)
            {
                options = new ExpergentOptions();
            }
        }
Exemple #2
0
 /// <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;
 }