Default service for getting/setting configuration parameters.
Default constructor
public Void ParameterService()
Gets a parameter.
public Task<IParameter> GetAsync(name)
An IParameter implementation for the parameter.
Name | Type | Summary |
---|---|---|
name | String | The name of the parameter to retrive. |
Type | Summary |
---|---|
MissingRequiredPropertyException | Thown when required properties are missing. |
Gets a parameter value as boolean.
public Task<Boolean> GetBooleanAsync(name)
Value of the parameter as boolean.
Name | Type | Summary |
---|---|---|
name | String | The name of the parameter to retrive it's value. |
Type | Summary |
---|---|
MissingRequiredPropertyException | Thown when required properties are missing. |
Gets a parameter value as an integer.
public Task<Int32> GetIntegerAsync(name)
Value of the parameter as integer.
Name | Type | Summary |
---|---|---|
name | String | The name of the parameter to retrive it's value. |
Type | Summary |
---|---|
MissingRequiredPropertyException | Thown when required properties are missing. |
Gets a parameter value as a string.
public Task<String> GetStringAsync(name)
Value of the parameter as string.
Name | Type | Summary |
---|---|---|
name | String | The name of the parameter to retrive it's value. |
Type | Summary |
---|---|
MissingRequiredPropertyException | Thown when required properties are missing. |
Sets the value of the parameter.
public Task SetValueAsync(name, value)
Name | Type | Summary |
---|---|---|
name | String | The name of the parameter to set it's value. |
value | Object | The value to be set. |
Type | Summary |
---|---|
MissingRequiredPropertyException | Thown when required properties are missing. |