Table of Contents

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 IConfigurationBuilder

The IConfigurationBuilder to add to.

provider IFileProvider

The IFileProvider to use to access the file.

path string

Path relative to the base path stored in Properties of builder.

optional bool

Whether the file is optional.

reloadOnChange bool

Whether the configuration should be reloaded if the file changes.

Returns

IConfigurationBuilder

The IConfigurationBuilder.

AddJsonFile(IConfigurationBuilder, Action<JsonConfigurationSource>)

Adds a JSON configuration source to builder.

public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, Action<JsonConfigurationSource> configureSource)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add to.

configureSource Action<JsonConfigurationSource>

Configures the source.

Returns

IConfigurationBuilder

The IConfigurationBuilder.

AddJsonFile(IConfigurationBuilder, string)

Adds the JSON configuration provider at path to builder.

public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, string path)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add to.

path string

Path relative to the base path stored in Properties of builder.

Returns

IConfigurationBuilder

The IConfigurationBuilder.

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 IConfigurationBuilder

The IConfigurationBuilder to add to.

path string

Path relative to the base path stored in Properties of builder.

optional bool

Whether the file is optional.

Returns

IConfigurationBuilder

The IConfigurationBuilder.

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 IConfigurationBuilder

The IConfigurationBuilder to add to.

path string

Path relative to the base path stored in Properties of builder.

optional bool

Whether the file is optional.

reloadOnChange bool

Whether the configuration should be reloaded if the file changes.

Returns

IConfigurationBuilder

The IConfigurationBuilder.