C# Class ConfigInjector.Configuration.DoYourThingConfigurationConfigurator

Exibir arquivo Open project: uglybugger/ConfigInjector

Public Methods

Method Description
AllowConfigurationEntriesThatDoNotHaveSettingsClasses ( bool allow ) : DoYourThingConfigurationConfigurator

If set to false (default), ConfigInjector will blow up when there are settings in the [web|app].config file that do not have corresponding setting types in your application.

DoYourThing ( ) : void
ExcludeSettingKeys ( ) : DoYourThingConfigurationConfigurator
ExcludeSettingKeys ( bool>.Func exclusionRule ) : DoYourThingConfigurationConfigurator
WithAppSettingsOverrider ( ISettingsOverrider settingsOverrider ) : DoYourThingConfigurationConfigurator
WithAppSettingsReader ( ISettingsReader settingsReader ) : DoYourThingConfigurationConfigurator

This allows you to substitute your own application settings reader. A good use case for this is in having a unit/convention test suite that opens your application's app.config file (rather than the test project's one) and asserts that all configuration settings are present and accounted for.

WithCustomValueParsers ( ) : DoYourThingConfigurationConfigurator
WithLogger ( IConfigInjectorLogger logger ) : DoYourThingConfigurationConfigurator
WithSettingKeyConventions ( ) : DoYourThingConfigurationConfigurator

Private Methods

Method Description
DoYourThingConfigurationConfigurator ( ITypeProvider typeProvider, Action registerAsSingleton ) : System

Method Details

AllowConfigurationEntriesThatDoNotHaveSettingsClasses() public method

If set to false (default), ConfigInjector will blow up when there are settings in the [web|app].config file that do not have corresponding setting types in your application.
public AllowConfigurationEntriesThatDoNotHaveSettingsClasses ( bool allow ) : DoYourThingConfigurationConfigurator
allow bool
return DoYourThingConfigurationConfigurator

DoYourThing() public method

public DoYourThing ( ) : void
return void

ExcludeSettingKeys() public method

public ExcludeSettingKeys ( ) : DoYourThingConfigurationConfigurator
return DoYourThingConfigurationConfigurator

ExcludeSettingKeys() public method

public ExcludeSettingKeys ( bool>.Func exclusionRule ) : DoYourThingConfigurationConfigurator
exclusionRule bool>.Func
return DoYourThingConfigurationConfigurator

WithAppSettingsOverrider() public method

public WithAppSettingsOverrider ( ISettingsOverrider settingsOverrider ) : DoYourThingConfigurationConfigurator
settingsOverrider ISettingsOverrider
return DoYourThingConfigurationConfigurator

WithAppSettingsReader() public method

This allows you to substitute your own application settings reader. A good use case for this is in having a unit/convention test suite that opens your application's app.config file (rather than the test project's one) and asserts that all configuration settings are present and accounted for.
public WithAppSettingsReader ( ISettingsReader settingsReader ) : DoYourThingConfigurationConfigurator
settingsReader ISettingsReader
return DoYourThingConfigurationConfigurator

WithCustomValueParsers() public method

public WithCustomValueParsers ( ) : DoYourThingConfigurationConfigurator
return DoYourThingConfigurationConfigurator

WithLogger() public method

public WithLogger ( IConfigInjectorLogger logger ) : DoYourThingConfigurationConfigurator
logger IConfigInjectorLogger
return DoYourThingConfigurationConfigurator

WithSettingKeyConventions() public method

public WithSettingKeyConventions ( ) : DoYourThingConfigurationConfigurator
return DoYourThingConfigurationConfigurator