
Public Member Functions | |
| ConfigManagerBase (string mainSectionName) | |
| Constructor. | |
| ConfigManagerBase (string mainSectionName, string path) | |
| Constructor. | |
| string | GetConnectionString (string name) |
| Retrieves a connection string from the configuration. | |
Protected Member Functions | |
| ConfigManagerBase (string mainSectionName, System.Configuration.Configuration sysConfig) | |
| Constructor. | |
Properties | |
| System.Configuration.Configuration | SysConfig [get] |
| The application's configuration. | |
| string | SectionName [get] |
| The name of the main configuration section. | |
| ConfigSectionType | ConfigSection [get] |
| The main configuration section. | |
It assumes that there's a main configuration section that contains the application specific portion of the configuration, while other sections provide configuration information that relate to specific libraries or subsystems.
| ConfigSectionType | The main configuration section handler class. |
| ConfigSectionType | : | class |
| DotNX::Config::ConfigManagerBase< ConfigSectionType >::ConfigManagerBase | ( | string | mainSectionName | ) |
Constructor.
| mainSectionName | The main configuration section's name. |
| DotNX::Config::ConfigManagerBase< ConfigSectionType >::ConfigManagerBase | ( | string | mainSectionName, | |
| string | path | |||
| ) |
Constructor.
Provided for testing purposes, so that configuration information may be made available within automated regression test suits.
| mainSectionName | The main configuration section's name. | |
| path | The path to the application's app.config file. |
| DotNX::Config::ConfigManagerBase< ConfigSectionType >::ConfigManagerBase | ( | string | mainSectionName, | |
| System.Configuration.Configuration | sysConfig | |||
| ) | [protected] |
Constructor.
All the other constructors delegate to the present one.
| mainSectionName | The main configuration section's name. | |
| sysConfig | An object representing the application's configuration. |
| string DotNX::Config::ConfigManagerBase< ConfigSectionType >::GetConnectionString | ( | string | name | ) |
Retrieves a connection string from the configuration.
| name | The name of the configuration. |
Implements DotNX::Config::IConfigManager.
System.Configuration.Configuration DotNX::Config::ConfigManagerBase< ConfigSectionType >::SysConfig [get] |
string DotNX::Config::ConfigManagerBase< ConfigSectionType >::SectionName [get] |
The name of the main configuration section.
Implements DotNX::Config::IConfigSectionManager< ConfigSectionType >.
ConfigSectionType DotNX::Config::ConfigManagerBase< ConfigSectionType >::ConfigSection [get] |
The main configuration section.
Implements DotNX::Config::IConfigSectionManager< ConfigSectionType >.