ICustomFunction<TParameter,TResult> Interface
HAKOM.TSM.Net.Api.Calculation.Formulas.CustomFunctions
Section titled “HAKOM.TSM.Net.Api.Calculation.Formulas.CustomFunctions”Interface for the for the custom function implementations with one parameter.
public interface ICustomFunction<TParameter,TResult> : HAKOM.TSM.Net.Api.Calculation.Formulas.CustomFunctions.ICustomFunctionType parameters
Section titled “Type parameters”TParameter
The parameter of the custom function. Its type is TParameter.
TResult
Type of the return value of the custom function.
Implements ICustomFunction
Methods
Section titled “Methods”ICustomFunction<TParameter,TResult>.Evaluate(DateTimeOffset, TParameter) Method
Section titled “ICustomFunction<TParameter,TResult>.Evaluate(DateTimeOffset, TParameter) Method”Evaluate is called for every time stamp of the calculation.
TResult Evaluate(System.DateTimeOffset calculationTime, TParameter parameter);Parameters
Section titled “Parameters”calculationTime System.DateTimeOffset
parameter TParameter
A parameter of type TParameter.
Returns
Section titled “Returns”TResult
The result returned by the custom function.
ICustomFunction<TParameter,TResult>.PerformBeforeCalculation(TParameter) Method
Section titled “ICustomFunction<TParameter,TResult>.PerformBeforeCalculation(TParameter) Method”PerformBeforeCalculation is called once before the calculation starts to perform for each time stamp.
System.Threading.Tasks.Task PerformBeforeCalculation(TParameter parameter);Parameters
Section titled “Parameters”parameter TParameter
A parameter of type TParameter.
Returns
Section titled “Returns”System.Threading.Tasks.Task
an awaitable System.Threading.Tasks.Task.
Was this page helpful?Thanks for your feedback!