public static IConfigurationBuilder AddResxFile(this IConfigurationBuilder builder, IFileProvider provider, string path, bool optional, bool reloadOnChange) { if (builder == null) { throw new ArgumentNullException("builder"); } if (string.IsNullOrEmpty(path)) { throw new ArgumentException("path"); } var source = new ResxConfigurationSource { FileProvider = provider, Path = path, Optional = optional, ReloadOnChange = reloadOnChange }; //source.ResolveFileProvider(); builder.Add(source); return builder; }
public ResxConfigurationProvider(ResxConfigurationSource source) : base(source) {}