Пример #1
0
 private static IConfiguration LoadAppSettings(string appSettingsFileName)
 {
     return(AppSettingsUtil.LoadAppSettings(
                Directory.GetCurrentDirectory(),
                appSettingsFileName
                ));
 }
Пример #2
0
        /// <summary>
        /// Loads the application settings.
        /// </summary>
        /// <param name="config">The configuration.</param>
        /// <param name="appSettingsFolderPath">The application settings folder path.</param>
        /// <param name="appSettingsFileName">Name of the application settings file.</param>
        public static void LoadAppSettings(ref TelemetryConfig config, string appSettingsFolderPath, string appSettingsFileName)
        {
            IConfiguration appSettingsConfig = AppSettingsUtil.LoadAppSettings(appSettingsFolderPath, appSettingsFileName);

            AppSettingsUtil.LoadAppSettings(ref config, appSettingsConfig);
        }
Пример #3
0
        /// <summary>
        /// Loads the application settings.
        /// </summary>
        /// <param name="config">The configuration.</param>
        public static void LoadAppSettings(ref TelemetryConfig config)
        {
            IConfiguration appSettingsConfig = AppSettingsUtil.LoadAppSettings();

            AppSettingsUtil.LoadAppSettings(ref config, appSettingsConfig);
        }
Пример #4
0
        /// <summary>
        /// Loads the application settings.
        /// </summary>
        /// <param name="config">The configuration.</param>
        /// <param name="appSettings">The application settings.</param>
        public static void LoadAppSettings(ref RollbarConfig config, IConfiguration appSettings)
        {
            const string rollbarAppConfigSectionName = "Rollbar";

            AppSettingsUtil.LoadAppSettings(ref config, rollbarAppConfigSectionName, appSettings);
        }
Пример #5
0
        /// <summary>
        /// Loads the application settings.
        /// </summary>
        /// <param name="config">The configuration.</param>
        /// <param name="appSettingsFileName">Name of the application settings file.</param>
        public static void LoadAppSettings(ref RollbarConfig config, string appSettingsFileName)
        {
            IConfiguration appSettingsConfig = AppSettingsUtil.LoadAppSettings(appSettingsFileName);

            AppSettingsUtil.LoadAppSettings(ref config, appSettingsConfig);
        }
Пример #6
0
        /// <summary>
        /// Loads the application settings.
        /// </summary>
        /// <param name="config">The configuration.</param>
        public static void LoadAppSettings(ref RollbarConfig config)
        {
            IConfiguration appSettingsConfig = AppSettingsUtil.LoadAppSettings();

            AppSettingsUtil.LoadAppSettings(ref config, appSettingsConfig);
        }
Пример #7
0
 private static IConfiguration LoadAppSettings()
 {
     return(AppSettingsUtil.LoadAppSettings("appsettings.json"));
 }