Microsoft.Extensions.Configuration.FileConfigurationExtensions
Provides extension methods for FileConfigurationProvider.
public static Action<FileLoadExceptionContext> GetFileLoadExceptionHandler(this IConfigurationBuilder builder)
Gets a default action to be invoked for file-based providers when an error occurs.
Gets the default IFileProvider to be used for file-based providers.
public static IConfigurationBuilder SetBasePath(this IConfigurationBuilder builder, string basePath)
Sets the FileProvider for file-based providers to a PhysicalFileProvider with the base path.
public static IConfigurationBuilder SetFileLoadExceptionHandler(this IConfigurationBuilder builder, Action<FileLoadExceptionContext> handler)
Sets a default action to be invoked for file-based providers when an error occurs.
public static IConfigurationBuilder SetFileProvider(this IConfigurationBuilder builder, IFileProvider fileProvider)
Sets the default IFileProvider to be used for file-based providers.