Class FileConfigurationExtensions
- Namespace
- Acuit.Pinpoint.Configuration
- Assembly
- Acuit.Pinpoint.Configuration.dll
Extension methods for FileConfigurationProvider.
public static class FileConfigurationExtensions
- Inheritance
-
FileConfigurationExtensions
- Inherited Members
Methods
GetFileLoadExceptionHandler(IConfigurationBuilder)
Gets the default IFileProvider to be used for file-based providers.
public static Action<FileLoadExceptionContext> GetFileLoadExceptionHandler(this IConfigurationBuilder builder)
Parameters
builder
IConfigurationBuilder
Returns
GetFileProvider(IConfigurationBuilder)
Gets the default IFileProvider to be used for file-based providers.
public static IFileProvider GetFileProvider(this IConfigurationBuilder builder)
Parameters
builder
IConfigurationBuilder
Returns
SetBasePath(IConfigurationBuilder, string)
Sets the FileProvider for file-based providers to a PhysicalFileProvider with the base path.
public static IConfigurationBuilder SetBasePath(this IConfigurationBuilder builder, string basePath)
Parameters
builder
IConfigurationBuilderThe IConfigurationBuilder to add to.
basePath
stringThe absolute path of file-based providers.
Returns
SetFileLoadExceptionHandler(IConfigurationBuilder, Action<FileLoadExceptionContext>)
Sets a default action to be invoked for file-based providers when an error occurs.
public static IConfigurationBuilder SetFileLoadExceptionHandler(this IConfigurationBuilder builder, Action<FileLoadExceptionContext> handler)
Parameters
builder
IConfigurationBuilderThe IConfigurationBuilder to add to.
handler
Action<FileLoadExceptionContext>The Action to be invoked on a file load exception.
Returns
SetFileProvider(IConfigurationBuilder, IFileProvider)
Sets the default IFileProvider to be used for file-based providers.
public static IConfigurationBuilder SetFileProvider(this IConfigurationBuilder builder, IFileProvider fileProvider)
Parameters
builder
IConfigurationBuilderThe IConfigurationBuilder to add to.
fileProvider
IFileProviderThe default file provider instance.