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