Parameter

Default IParameter implementation.

Namespace:
Inetdev.Parameters
Type:
Class
Public:
Yes
Protected:
No
Sealed:
Yes
Abstract:
No
Inherits from:
System.Object
Implements:
Inetdev.Parameters.IParameter

Constructors

Parameter

Initializes a new instance of Parameter.

Signature:
public Void Parameter(configuration, store)
Parameters
Name Type Summary
configuration ParameterConfiguration Configuration of this parameter.
store IParameterStore An implementation of IParameterStore used to get/set parameter values.
Exceptions
Type Summary
ArgumentNullException Thrown when any of the arguments are null.

Properties

Configuration

Gets the parameter configuration.

Signature:
public ParameterConfiguration Configuration { get; set; }

Store

An implementation of IParameterStore used to get/set parameter values.

Signature:
public IParameterStore Store { get; set; }

Methods

GetBooleanAsync

Returns the parameter value as boolean.

Signature:
public Task<Boolean> GetBooleanAsync()
Returns

Value of the parameter as boolean.

Exceptions
Type Summary
WrongParameterTypeException

GetIntegerAsync

Returns the parameter value as integer.

Signature:
public Task<Int32> GetIntegerAsync()
Returns

Value of the parameter as integer.

Exceptions
Type Summary
WrongParameterTypeException

GetStringAsync

Returns the parameter value as a string.

Signature:
public Task<String> GetStringAsync()
Returns

Value of the parameter as string.

Exceptions
Type Summary
WrongParameterTypeException

SetValueAsync

Sets the parameter value;

Signature:
public Task SetValueAsync(value)
Parameters
Name Type Summary
value Object Value to set for this parameter.
Exceptions
Type Summary
ParameterValueValidationException

ToString

Returns a textual representation of this parameter.

Signature:
public String ToString()