Class JsonConfigurationExtensions
- Namespace
- Acuit.Pinpoint.Configuration
- Assembly
- Acuit.Pinpoint.Configuration.dll
Extension methods for adding JsonConfigurationProvider.
public static class JsonConfigurationExtensions
- Inheritance
-
JsonConfigurationExtensions
- Inherited Members
Methods
AddJsonFile(IConfigurationBuilder, IFileProvider, string, bool, bool)
Adds a JSON configuration source to builder
.
public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, IFileProvider provider, string path, bool optional, bool reloadOnChange)
Parameters
builder
IConfigurationBuilderThe IConfigurationBuilder to add to.
provider
IFileProviderThe IFileProvider to use to access the file.
path
stringPath relative to the base path stored in Properties of
builder
.optional
boolWhether the file is optional.
reloadOnChange
boolWhether the configuration should be reloaded if the file changes.
Returns
AddJsonFile(IConfigurationBuilder, Action<JsonConfigurationSource>)
Adds a JSON configuration source to builder
.
public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, Action<JsonConfigurationSource> configureSource)
Parameters
builder
IConfigurationBuilderThe IConfigurationBuilder to add to.
configureSource
Action<JsonConfigurationSource>Configures the source.
Returns
AddJsonFile(IConfigurationBuilder, string)
Adds the JSON configuration provider at path
to builder
.
public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, string path)
Parameters
builder
IConfigurationBuilderThe IConfigurationBuilder to add to.
path
stringPath relative to the base path stored in Properties of
builder
.
Returns
AddJsonFile(IConfigurationBuilder, string, bool)
Adds the JSON configuration provider at path
to builder
.
public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, string path, bool optional)
Parameters
builder
IConfigurationBuilderThe IConfigurationBuilder to add to.
path
stringPath relative to the base path stored in Properties of
builder
.optional
boolWhether the file is optional.
Returns
AddJsonFile(IConfigurationBuilder, string, bool, bool)
Adds the JSON configuration provider at path
to builder
.
public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, string path, bool optional, bool reloadOnChange)
Parameters
builder
IConfigurationBuilderThe IConfigurationBuilder to add to.
path
stringPath relative to the base path stored in Properties of
builder
.optional
boolWhether the file is optional.
reloadOnChange
boolWhether the configuration should be reloaded if the file changes.