Table of Contents

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

The IConfigurationBuilder.

Returns

Action<FileLoadExceptionContext>

The IConfigurationBuilder.

GetFileProvider(IConfigurationBuilder)

Gets the default IFileProvider to be used for file-based providers.

public static IFileProvider GetFileProvider(this IConfigurationBuilder builder)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder.

Returns

IFileProvider

The IConfigurationBuilder.

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 IConfigurationBuilder

The IConfigurationBuilder to add to.

basePath string

The absolute path of file-based providers.

Returns

IConfigurationBuilder

The IConfigurationBuilder.

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 IConfigurationBuilder

The IConfigurationBuilder to add to.

handler Action<FileLoadExceptionContext>

The Action to be invoked on a file load exception.

Returns

IConfigurationBuilder

The IConfigurationBuilder.

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 IConfigurationBuilder

The IConfigurationBuilder to add to.

fileProvider IFileProvider

The default file provider instance.

Returns

IConfigurationBuilder

The IConfigurationBuilder.