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
builderIConfigurationBuilderThe IConfigurationBuilder to add to.
providerIFileProviderThe IFileProvider to use to access the file.
pathstringPath relative to the base path stored in Properties of
builder.optionalboolWhether the file is optional.
reloadOnChangeboolWhether 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
builderIConfigurationBuilderThe IConfigurationBuilder to add to.
configureSourceAction<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
builderIConfigurationBuilderThe IConfigurationBuilder to add to.
pathstringPath 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
builderIConfigurationBuilderThe IConfigurationBuilder to add to.
pathstringPath relative to the base path stored in Properties of
builder.optionalboolWhether 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
builderIConfigurationBuilderThe IConfigurationBuilder to add to.
pathstringPath relative to the base path stored in Properties of
builder.optionalboolWhether the file is optional.
reloadOnChangeboolWhether the configuration should be reloaded if the file changes.