Exemple #1
0
        public static IConfigurationBuilder AddConfigYml(
            this IConfigurationBuilder builder,
            string configDir,
            string environment,
            bool optional = true,
            bool reload   = true)
        {
            var configYml = Path.Combine(configDir, MiruSolution.ConfigYml(environment));

            return(builder.AddYamlFile(configYml, optional, reload));
        }
Exemple #2
0
        public static IConfigurationBuilder AddConfigYml(
            this IConfigurationBuilder builder,
            string environment,
            bool optional = true,
            bool reload   = true)
        {
            var solution = App.Solution;

            if (solution.ConfigDir.Exists() == false)
            {
                return(builder);
            }

            var configYml = Path.Combine(solution.ConfigDir, MiruSolution.ConfigYml(environment));

            return(builder.AddYamlFile(configYml, optional, reload));
        }