private static AbstractConfiguration CreateDefaultConfigInstance() { var config = new ConcurrentCompositeConfiguration(); try { var defaultURLConfig = new DynamicUrlConfiguration(); config.AddConfiguration(defaultURLConfig, UrlConfigName); } catch (Exception e) { m_Log.Warn("Failed to create default dynamic configuration", e); } var appSettingsConfig = new AppSettingsConfiguration(); config.AddConfiguration(appSettingsConfig, AppSettingsConfigName); var envConfig = new EnvironmentConfiguration(); config.AddConfiguration(envConfig, EnvConfigName); var appOverrideConfig = new ConcurrentCompositeConfiguration(); config.AddConfiguration(appOverrideConfig, ApplicationProperties); config.SetContainerConfigurationIndex(config.GetIndexOfConfiguration(appOverrideConfig)); return(config); }
private static AbstractConfiguration CreateDefaultConfigInstance() { var config = new ConcurrentCompositeConfiguration(); try { var defaultURLConfig = new DynamicUrlConfiguration(); config.AddConfiguration(defaultURLConfig, UrlConfigName); } catch (Exception e) { m_Log.Warn("Failed to create default dynamic configuration", e); } var appSettingsConfig = new AppSettingsConfiguration(); config.AddConfiguration(appSettingsConfig, AppSettingsConfigName); var envConfig = new EnvironmentConfiguration(); config.AddConfiguration(envConfig, EnvConfigName); var appOverrideConfig = new ConcurrentCompositeConfiguration(); config.AddConfiguration(appOverrideConfig, ApplicationProperties); config.SetContainerConfigurationIndex(config.GetIndexOfConfiguration(appOverrideConfig)); return config; }