|
Joutsen v0.5.0+18-g5fdf104
|
An application configuration read from a JSON file. More...
Public Member Functions | |
| JsonApplicationConfiguration (IConfiguration config, String section) | |
| Creates a new instance for a section from a configuration. | |
| String | GetValue (String key) |
| Fetches a value identified by a key as a string. | |
| ValueType | GetValue< ValueType > (String key) |
| Fetches a value identified by a key as a specific type. | |
| ValueType | GetValue< ValueType > (String key, SimpleTypeConverter< string, ValueType > converter) |
| Fetches a value identified by a key as a specific type. | |
| SectionType | GetSection< SectionType > (String sectionName) |
| Fetches a section from the configuration. | |
An application configuration read from a JSON file.
| Joutsen.Configuration.JsonApplicationConfiguration.JsonApplicationConfiguration | ( | IConfiguration | config, |
| String | section | ||
| ) |
Creates a new instance for a section from a configuration.
| SectionType Joutsen.Configuration.JsonApplicationConfiguration.GetSection< SectionType > | ( | String | sectionName | ) |
Fetches a section from the configuration.
Implements Joutsen.Configuration.ApplicationConfiguration.
| SectionType | : | global | |
| SectionType | : | System.Configuration.ConfigurationSection |
| String Joutsen.Configuration.JsonApplicationConfiguration.GetValue | ( | String | key | ) |
Fetches a value identified by a key as a string.
Implements Joutsen.Configuration.ApplicationConfiguration.
| ValueType Joutsen.Configuration.JsonApplicationConfiguration.GetValue< ValueType > | ( | String | key | ) |
Fetches a value identified by a key as a specific type.
Implements Joutsen.Configuration.ApplicationConfiguration.
| ValueType | : | IConvertible |
| ValueType Joutsen.Configuration.JsonApplicationConfiguration.GetValue< ValueType > | ( | String | key, |
| SimpleTypeConverter< string, ValueType > | converter | ||
| ) |
Fetches a value identified by a key as a specific type.
| key | the configuration key |
| converter | the converter used to convert the read string into a specific type |
Implements Joutsen.Configuration.ApplicationConfiguration.