Skip to content
Documentation

ICustomFunction<TParameter1,TParameter2,TParameter3,TParameter4,TResult> Interface

Interface for the for the custom function implementations with four parameters.

public interface ICustomFunction<TParameter1,TParameter2,TParameter3,TParameter4,TResult> : HAKOM.TSM.Net.Api.Calculation.Formulas.CustomFunctions.ICustomFunction

TParameter1

The first parameter of the custom function. Its type is TParameter1.

TParameter2

The second parameter of the custom function. Its type is TParameter2.

TParameter3

The third parameter of the custom function. Its type is TParameter3.

TParameter4

The fourth parameter of the custom function. Its type is TParameter4.

TResult

Type of the return value of the custom function.

Implements ICustomFunction

ICustomFunction<TParameter1,TParameter2,TParameter3,TParameter4,TResult>.Evaluate(DateTimeOffset, TParameter1, TParameter2, TParameter3, TParameter4) Method

Section titled “ICustomFunction<TParameter1,TParameter2,TParameter3,TParameter4,TResult>.Evaluate(DateTimeOffset, TParameter1, TParameter2, TParameter3, TParameter4) Method”

Evaluate is called for every time stamp of the calculation.

TResult Evaluate(System.DateTimeOffset calculationTime, TParameter1 parameter1, TParameter2 parameter2, TParameter3 parameter3, TParameter4 parameter4);

calculationTime System.DateTimeOffset

The current time stamp of System.DateTimeOffset to

parameter1 TParameter1

The first parameter of type TParameter1.

parameter2 TParameter2

The second parameter of type TParameter2.

parameter3 TParameter3

The third parameter of type TParameter3.

parameter4 TParameter4

The fourth parameter of type TParameter4.

TResult
The result returned by the custom function.

ICustomFunction<TParameter1,TParameter2,TParameter3,TParameter4,TResult>.PerformBeforeCalculation(TParameter1, TParameter2, TParameter3, TParameter4) Method

Section titled “ICustomFunction<TParameter1,TParameter2,TParameter3,TParameter4,TResult>.PerformBeforeCalculation(TParameter1, TParameter2, TParameter3, TParameter4) Method”

PerformBeforeCalculation is called once before the calculation starts to perform for each time stamp.

System.Threading.Tasks.Task PerformBeforeCalculation(TParameter1 parameter1, TParameter2 parameter2, TParameter3 parameter3, TParameter4 parameter4);

parameter1 TParameter1

The first parameter of type TParameter1.

parameter2 TParameter2

The second parameter of type TParameter2.

parameter3 TParameter3

The third parameter of type TParameter3.

parameter4 TParameter4

The fourth parameter of type TParameter4.

System.Threading.Tasks.Task
An awaitable System.Threading.Tasks.Task.

© 2026 Volue.Version v0.6.38017 November 2026