Table of Contents

Class JsonExtensions

Namespace
Tenduke.Core.Config
Assembly
Tenduke.Core.dll

Extension methods for registering a Tenduke.Core.Config.Json.JsonConfigurationProvider configuration provider with TendukeConfigurationBuilder.

public static class JsonExtensions
Inheritance
JsonExtensions
Inherited Members

Methods

AddJsonFile(AsyncTendukeConfigurationBuilder, string)

Adds an IConfigurationProvider that reads configuration items from a JSON file.

public static AsyncTendukeConfigurationBuilder AddJsonFile(this AsyncTendukeConfigurationBuilder builder, string filePath)

Parameters

builder AsyncTendukeConfigurationBuilder

The AsyncTendukeConfigurationBuilder to add to.

filePath string

Name and path of file to add.

Returns

AsyncTendukeConfigurationBuilder

The AsyncTendukeConfigurationBuilder.

Exceptions

ArgumentNullException

TendukeConfigurationBuilder or filePath was null.

FileNotFoundException

filePath was not found.

AddJsonFile(TendukeConfigurationBuilder, string)

Adds an IConfigurationProvider that reads configuration items from a JSON file.

public static TendukeConfigurationBuilder AddJsonFile(this TendukeConfigurationBuilder builder, string filePath)

Parameters

builder TendukeConfigurationBuilder

The TendukeConfigurationBuilder to add to.

filePath string

Name and path of file to add.

Returns

TendukeConfigurationBuilder

The TendukeConfigurationBuilder.

Exceptions

ArgumentNullException

TendukeConfigurationBuilder or filePath was null.

FileNotFoundException

filePath was not found.