IParameterService

Allows the implementation of a parameter service.

Namespace:
Inetdev.Parameters
Type:
Interface
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
Yes

Remarks

A parameter service allows getting and setting parameter values.

Properties

Provider

The provider used to access configuration parameters.

Signature:
public IParameterProvider Provider { get; }

Methods

GetAsync

Gets a parameter.

Signature:
public Task<IParameter> GetAsync(name)
Returns

A IParameter object to access parameter data.

Parameters
Name Type Summary
name String The name of the parameter to retrive.

GetBooleanAsync

Gets a parameter value as boolean.

Signature:
public Task<Boolean> GetBooleanAsync(name)
Returns

The value of the parámeter as boolean.

Parameters
Name Type Summary
name String The name of the parameter to retrive it's value.

GetIntegerAsync

Gets a parameter value as an integer.

Signature:
public Task<Int32> GetIntegerAsync(name)
Returns

The value of the parámeter as integer.

Parameters
Name Type Summary
name String The name of the parameter to retrive it's value.

GetStringAsync

Gets a parameter value as a string.

Signature:
public Task<String> GetStringAsync(name)
Returns

The value of the parámeter as string.

Parameters
Name Type Summary
name String The name of the parameter to retrive it's value.

SetValueAsync

Sets the value of the parameter.

Signature:
public Task SetValueAsync(name, value)
Parameters
Name Type Summary
name String The name of the parameter to set it's value.
value Object The value to be set.