The main workhorse for obtaining configuration entities of type T .
More...
|
static void | AddCachedConfig (string definedName, T section) |
| Adds the given section to the cache using the given name. More...
|
|
static void | RemoveCachedConfig (string definedName) |
| Removes the section with the given name from the cache. More...
|
|
static T | GetConfig () |
| Gets the default configuration section named 'apac' (if defined). More...
|
|
static T | GetConfig (string definedName) |
| Gets the default configuration section named - Parameters
-
More...
|
|
static T | GetSection (System.Configuration.Configuration config) |
| Gets the default configuration section from the given configuration object. Note that the configuration file is re-parsed every time a section is loaded using the Configuration object. More...
|
|
static T | GetSection (System.Configuration.Configuration config, string definedName) |
| Gets the configuration section with the given name from the given configuration object. Note that the configuration file is re-parsed every time a section is loaded using the Configuration object. More...
|
|
The main workhorse for obtaining configuration entities of type T .
- Template Parameters
-
T | The type of configuration object needed. |
◆ AddCachedConfig()
Adds the given section to the cache using the given name.
- Parameters
-
definedName | The name of the section to be cached. |
section | The section to be added. |
◆ GetConfig() [1/2]
Gets the default configuration section named 'apac' (if defined).
- Returns
- The default configuration section or
null
.
◆ GetConfig() [2/2]
Gets the default configuration section named
- Parameters
-
- Returns
- The requested configuration section or
null
.
◆ GetSection() [1/2]
Gets the default configuration section from the given configuration object. Note that the configuration file is re-parsed every time a section is loaded using the Configuration object.
- Parameters
-
- Returns
- The default section or
null
.
◆ GetSection() [2/2]
Gets the configuration section with the given name from the given configuration object. Note that the configuration file is re-parsed every time a section is loaded using the Configuration object.
- Parameters
-
config | The Configuration object used to get the section. |
definedName | The name of the requested configuration section. |
- Returns
- The default section or
null
.
◆ RemoveCachedConfig()
Removes the section with the given name from the cache.
- Parameters
-
definedName | The name of the section to be found. |
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/apac/APAC/APACCore/Configuration/Config.cs