C# Класс ConfigInjector.Configuration.DoYourThingConfigurationConfigurator

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
DoYourThingConfigurationConfigurator ( ITypeProvider typeProvider, Action registerAsSingleton ) : System

Описание методов

AllowConfigurationEntriesThatDoNotHaveSettingsClasses() публичный Метод

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
Результат DoYourThingConfigurationConfigurator

DoYourThing() публичный Метод

public DoYourThing ( ) : void
Результат void

ExcludeSettingKeys() публичный Метод

public ExcludeSettingKeys ( ) : DoYourThingConfigurationConfigurator
Результат DoYourThingConfigurationConfigurator

ExcludeSettingKeys() публичный Метод

public ExcludeSettingKeys ( bool>.Func exclusionRule ) : DoYourThingConfigurationConfigurator
exclusionRule bool>.Func
Результат DoYourThingConfigurationConfigurator

WithAppSettingsOverrider() публичный Метод

public WithAppSettingsOverrider ( ISettingsOverrider settingsOverrider ) : DoYourThingConfigurationConfigurator
settingsOverrider ISettingsOverrider
Результат DoYourThingConfigurationConfigurator

WithAppSettingsReader() публичный Метод

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
Результат DoYourThingConfigurationConfigurator

WithCustomValueParsers() публичный Метод

public WithCustomValueParsers ( ) : DoYourThingConfigurationConfigurator
Результат DoYourThingConfigurationConfigurator

WithLogger() публичный Метод

public WithLogger ( IConfigInjectorLogger logger ) : DoYourThingConfigurationConfigurator
logger IConfigInjectorLogger
Результат DoYourThingConfigurationConfigurator

WithSettingKeyConventions() публичный Метод

public WithSettingKeyConventions ( ) : DoYourThingConfigurationConfigurator
Результат DoYourThingConfigurationConfigurator