Table of Contents

Class ConfigurationSectionExtensions

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

Extension methods for registering Tenduke.Core.Config.ConfigurationSection.ConfigurationSectionProvider with TendukeConfigurationBuilder.

public static class ConfigurationSectionExtensions
Inheritance
ConfigurationSectionExtensions
Inherited Members

Methods

AddConfigurationSection(AsyncTendukeConfigurationBuilder, IConfiguration)

Adds an IConfigurationProvider that reads configuration items from a section of an IConfiguration.

public static AsyncTendukeConfigurationBuilder AddConfigurationSection(this AsyncTendukeConfigurationBuilder builder, IConfiguration configuration)

Parameters

builder AsyncTendukeConfigurationBuilder

The AsyncTendukeConfigurationBuilder to add to.

configuration IConfiguration

The IConfiguration already loaded using an IConfigurationBuilder.

Returns

AsyncTendukeConfigurationBuilder

The AsyncTendukeConfigurationBuilder.

Exceptions

ArgumentNullException

builder or configuration was null.

AddConfigurationSection(AsyncTendukeConfigurationBuilder, IConfiguration, string)

Adds an IConfigurationProvider that reads configuration items from a section of an IConfiguration.

public static AsyncTendukeConfigurationBuilder AddConfigurationSection(this AsyncTendukeConfigurationBuilder builder, IConfiguration configuration, string sectionName)

Parameters

builder AsyncTendukeConfigurationBuilder

The AsyncTendukeConfigurationBuilder to add to.

configuration IConfiguration

The IConfiguration already loaded using an IConfigurationBuilder.

sectionName string

Name of configuration section to load keys from.

Returns

AsyncTendukeConfigurationBuilder

The AsyncTendukeConfigurationBuilder.

Exceptions

ArgumentNullException

builder, configuration, or sectionName was null.

ArgumentException

sectionName was empty or contained only whitespace.

AddConfigurationSection(TendukeConfigurationBuilder, IConfiguration)

Adds an IConfigurationProvider that reads configuration items from a section of an IConfiguration.

public static TendukeConfigurationBuilder AddConfigurationSection(this TendukeConfigurationBuilder builder, IConfiguration configuration)

Parameters

builder TendukeConfigurationBuilder

The TendukeConfigurationBuilder to add to.

configuration IConfiguration

The IConfiguration already loaded using an IConfigurationBuilder.

Returns

TendukeConfigurationBuilder

The TendukeConfigurationBuilder.

Exceptions

ArgumentNullException

builder was null or configuration was null.

AddConfigurationSection(TendukeConfigurationBuilder, IConfiguration, string)

Adds an IConfigurationProvider that reads configuration items from a section of an IConfiguration.

public static TendukeConfigurationBuilder AddConfigurationSection(this TendukeConfigurationBuilder builder, IConfiguration configuration, string sectionName)

Parameters

builder TendukeConfigurationBuilder

The TendukeConfigurationBuilder to add to.

configuration IConfiguration

The IConfiguration already loaded using an IConfigurationBuilder.

sectionName string

Name of configuration section to load keys from.

Returns

TendukeConfigurationBuilder

The TendukeConfigurationBuilder.

Exceptions

ArgumentNullException

builder, configuration, or sectionName was null.

ArgumentException

sectionName was empty or contained only whitespace.