Default IParameter implementation.
Initializes a new instance of Parameter.
public Void Parameter(configuration, store)
Name | Type | Summary |
---|---|---|
configuration | ParameterConfiguration | Configuration of this parameter. |
store | IParameterStore | An implementation of IParameterStore used to get/set parameter values. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when any of the arguments are null. |
Gets the parameter configuration.
public ParameterConfiguration Configuration { get; set; }
An implementation of IParameterStore used to get/set parameter values.
public IParameterStore Store { get; set; }
Returns the parameter value as boolean.
public Task<Boolean> GetBooleanAsync()
Value of the parameter as boolean.
Type | Summary |
---|---|
WrongParameterTypeException |
Returns the parameter value as integer.
public Task<Int32> GetIntegerAsync()
Value of the parameter as integer.
Type | Summary |
---|---|
WrongParameterTypeException |
Returns the parameter value as a string.
public Task<String> GetStringAsync()
Value of the parameter as string.
Type | Summary |
---|---|
WrongParameterTypeException |
Sets the parameter value;
public Task SetValueAsync(value)
Name | Type | Summary |
---|---|---|
value | Object | Value to set for this parameter. |
Type | Summary |
---|---|
ParameterValueValidationException |
Returns a textual representation of this parameter.
public String ToString()