Skip to content
Documentation

ICustomFunction<TParameter,TResult> Interface

Interface for the for the custom function implementations with one parameter.

public interface ICustomFunction<TParameter,TResult> : HAKOM.TSM.Net.Api.Calculation.Formulas.CustomFunctions.ICustomFunction

TParameter

The parameter of the custom function. Its type is TParameter.

TResult

Type of the return value of the custom function.

Implements ICustomFunction

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);

calculationTime System.DateTimeOffset

parameter TParameter

A parameter of type TParameter.

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);

parameter TParameter

A parameter of type TParameter.

System.Threading.Tasks.Task
an awaitable System.Threading.Tasks.Task.

© 2026 Volue.Version v0.6.38017 November 2026