Table of Contents

Class ConfigurationManagerExtensions

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

Extension methods for registering Tenduke.Core.Config.ConfigurationManager.ConfigurationManagerProvider with TendukeConfigurationBuilder.

public static class ConfigurationManagerExtensions
Inheritance
ConfigurationManagerExtensions
Inherited Members

Methods

AddConfigurationManager(AsyncTendukeConfigurationBuilder, string)

Adds an IConfigurationProvider that reads configuration items from ConfigurationManager.

public static AsyncTendukeConfigurationBuilder AddConfigurationManager(this AsyncTendukeConfigurationBuilder builder, string sectionName)

Parameters

builder AsyncTendukeConfigurationBuilder

The AsyncTendukeConfigurationBuilder to add to.

sectionName string

Name of configuration section to load keys from.

Returns

AsyncTendukeConfigurationBuilder

The AsyncTendukeConfigurationBuilder.

Remarks

Use this method to load the 10Duke Scale SDK configuration items from a named section of the app.config or web.config.

Exceptions

ArgumentNullException

builder was null or sectionName was null.

ArgumentException

sectionName was empty or contained only whitespace.

AddConfigurationManager(TendukeConfigurationBuilder, string)

Adds an IConfigurationProvider that reads configuration items from ConfigurationManager.

public static TendukeConfigurationBuilder AddConfigurationManager(this TendukeConfigurationBuilder builder, string sectionName)

Parameters

builder TendukeConfigurationBuilder

The TendukeConfigurationBuilder to add to.

sectionName string

Name of configuration section to load keys from.

Returns

TendukeConfigurationBuilder

The TendukeConfigurationBuilder.

Remarks

Use this method to load the 10Duke SDK configuration items from a named section of the app.config or web.config.

Exceptions

ArgumentNullException

builder was null or sectionName was null.

ArgumentException

sectionName was empty or contained only whitespace.