Click or drag to resize

IGlobalCacheReplaceValueTIn, TOut Method

Replace value for a given key based on a given calculation formula.

Namespace:  Mavidian.DataConveyer.Orchestrators
Assembly:  DataConveyer (in DataConveyer.dll) Version: 3.4.6+1324144ff7
Syntax
TOut ReplaceValue<TIn, TOut>(
	string key,
	Func<TIn, TOut> formula
)

Parameters

key
Type: SystemString
Key of the value to replace.
formula
Type: SystemFuncTIn, TOut
Function to calculate a new value from the old value.

Type Parameters

TIn
Type of the value to replace (i.e. the old value).
TOut
Type of the replacement value (i.e. the new value).

Return Value

Type: TOut
New value that replaced the old value.
Exceptions
ExceptionCondition
ArgumentExceptionElement for a given key does not exist or is of type other than TIn.
InvalidOperationExceptionFormula threw exception during calculation; see InnerException for details.
See Also