Allows the implementation of a parameter service.
A parameter service allows getting and setting parameter values.
The provider used to access configuration parameters.
public IParameterProvider Provider { get; }
Gets a parameter.
public Task<IParameter> GetAsync(name)
A IParameter object to access parameter data.
Name | Type | Summary |
---|---|---|
name | String | The name of the parameter to retrive. |
Gets a parameter value as boolean.
public Task<Boolean> GetBooleanAsync(name)
The value of the parámeter as boolean.
Name | Type | Summary |
---|---|---|
name | String | The name of the parameter to retrive it's value. |
Gets a parameter value as an integer.
public Task<Int32> GetIntegerAsync(name)
The value of the parámeter as integer.
Name | Type | Summary |
---|---|---|
name | String | The name of the parameter to retrive it's value. |
Gets a parameter value as a string.
public Task<String> GetStringAsync(name)
The value of the parámeter as string.
Name | Type | Summary |
---|---|---|
name | String | The name of the parameter to retrive it's value. |
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. |
In this document