ParameterStore

Implements an IParameterStore that uses a Parameter domain object model to save and retrieve parameter values.

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

Constructors

ParameterStore

Initializes a new instance of ParameterStore.

Signature:
public Void ParameterStore(currentTenantId)
Parameters
Name Type Summary
currentTenantId Int32 Identification of the current Tenant.

Methods

GetValueAsync

Gets the current value of the required parameter.

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

The value of the parameter or null if it is not found.

Parameters
Name Type Summary
name String The name of the parameter to retrieve.
Exceptions
Type Summary
ArgumentNullOrEmptyException Thrown when name is null or empty.

SaveValueAsync

Saves the value to the parameter table.

Signature:
public Task SaveValueAsync(name, value)
Parameters
Name Type Summary
name String Name of the parameter to set.
value String The value to be setted.
Exceptions
Type Summary
ArgumentNullOrEmptyException Thrown when name is null or empty.