Esempio n. 1
0
        /// <summary>
        /// Adds a INI configuration source to <paramref name="builder"/>.
        /// </summary>
        public static IConfigurationBuilder AddIniFile(this IConfigurationBuilder builder, Action <IniConfigurationSource> configureSource)
        {
            var source = new IniConfigurationSource();

            configureSource?.Invoke(source);
            return(builder.Add(source));
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance with the specified source.
 /// </summary>
 /// <param name="source">The source settings.</param>
 public IniConfigurationProvider(IniConfigurationSource source) : base(source)
 {
 }