Class ConfigurationManagerExtensions
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
AsyncTendukeConfigurationBuilderThe AsyncTendukeConfigurationBuilder to add to.
sectionName
stringName of configuration section to load keys from.
Returns
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
wasnull
orsectionName
wasnull
.- 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
TendukeConfigurationBuilderThe TendukeConfigurationBuilder to add to.
sectionName
stringName of configuration section to load keys from.
Returns
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
wasnull
orsectionName
wasnull
.- ArgumentException
sectionName
was empty or contained only whitespace.