Skip to content
Documentation

ICustomFunctionContext<TValue> Interface

Facility for providing formula and computation properties necessary for the calculation of a custom function.

public interface ICustomFunctionContext<TValue>
where TValue : System.IEquatable<TValue>, System.IComparable<TValue>

TValue

The type of the value of the data.

ICustomFunctionContext<TValue>.ArithmeticOperations Property

Section titled “ICustomFunctionContext<TValue>.ArithmeticOperations Property”

Facility for executing arithmetic operations.

HAKOM.TSM.Net.Api.Data.TimeSeries.Math.IArithmeticOperations<TValue> ArithmeticOperations { get; }

HAKOM.TSM.Net.Api.Data.TimeSeries.Math.IArithmeticOperations<TValue>

ICustomFunctionContext<TValue>.CalculationOptions Property

Section titled “ICustomFunctionContext<TValue>.CalculationOptions Property”

Settings for reading in the data used in the calculation of the IFormula object. Applied to the time series that are referenced from the formula string an not to the root time series.

HAKOM.TSM.Net.Api.Calculation.ICalculationOptions CalculationOptions { get; }

ICalculationOptions

ICustomFunctionContext<TValue>.ReadingOptions Property

Section titled “ICustomFunctionContext<TValue>.ReadingOptions Property”

AnITimeSeriesDataReadingOptions object describing the desired properties of the return value.

HAKOM.TSM.Net.Api.Data.Persistence.TimeSeries.ITimeSeriesDataReadingOptions ReadingOptions { get; }

ITimeSeriesDataReadingOptions

ICustomFunctionContext<TValue>.RootTimeSeriesReference Property

Section titled “ICustomFunctionContext<TValue>.RootTimeSeriesReference Property”

Time series to which the IFormula object was assigned as a property.

HAKOM.TSM.Net.Api.TimeSeries.Persistence.References.ITimeSeriesReference? RootTimeSeriesReference { get; }

ITimeSeriesReference

ICustomFunctionContext<TValue>.SourceTimeSeries Property

Section titled “ICustomFunctionContext<TValue>.SourceTimeSeries Property”

Contains all time series referenced in the IFormula object. Time series appear in the order in which they are found in the formula string.

System.Collections.Generic.IDictionary<int,HAKOM.TSM.Net.Api.Calculation.ITimeSeriesReferenceWithData<TValue>> SourceTimeSeries { get; }

System.Collections.Generic.IDictionary<System.Int32,HAKOM.TSM.Net.Api.Calculation.ITimeSeriesReferenceWithData<TValue>>

ICustomFunctionContext<TValue>.TimeSeriesDataFactory Property

Section titled “ICustomFunctionContext<TValue>.TimeSeriesDataFactory Property”

Facility for creating objects representing time series data.

HAKOM.TSM.Net.Api.Data.TimeSeries.ITimeSeriesDataFactory TimeSeriesDataFactory { get; }

ITimeSeriesDataFactory

ICustomFunctionContext<TValue>.CreateResult(DateTimeOffset, ITimeSeriesData<TValue>) Method

Section titled “ICustomFunctionContext<TValue>.CreateResult(DateTimeOffset, ITimeSeriesData<TValue>) Method”

Converts the given data to the return type to ITimeSeriesData<TValue>.

HAKOM.TSM.Net.Api.Data.TimeSeries.ITimeSeriesData<TValue> CreateResult(System.DateTimeOffset calculationTime, HAKOM.TSM.Net.Api.Data.TimeSeries.ITimeSeriesData<TValue> data);

calculationTime System.DateTimeOffset

The time of the ITimeSeriesData<TValue>.

data HAKOM.TSM.Net.Api.Data.TimeSeries.ITimeSeriesData<TValue>

The value of the ITimeSeriesData<TValue>.

HAKOM.TSM.Net.Api.Data.TimeSeries.ITimeSeriesData<TValue>
An ITimeSeriesData<TValue>.

ICustomFunctionContext<TValue>.CreateResult(DateTimeOffset, TValue) Method

Section titled “ICustomFunctionContext<TValue>.CreateResult(DateTimeOffset, TValue) Method”

Converts the given data to the return type to ITimeSeriesData<TValue>.

HAKOM.TSM.Net.Api.Data.TimeSeries.ITimeSeriesData<TValue> CreateResult(System.DateTimeOffset calculationTime, TValue data);

calculationTime System.DateTimeOffset

The time of the ITimeSeriesData<TValue>.

data TValue

The value of the ITimeSeriesData<TValue>.

HAKOM.TSM.Net.Api.Data.TimeSeries.ITimeSeriesData<TValue>
An ITimeSeriesData<TValue>.

ICustomFunctionContext<TValue>.GetService<TService>() Method

Section titled “ICustomFunctionContext<TValue>.GetService<TService>() Method”

Gets an instance of the given TService from the IActivatedContainer.

TService GetService<TService>()
where TService : notnull;

TService

Signifies which service to get.

TService
An instance of the desired service.

ICustomFunctionContext<TValue>.TryGetService<TService>() Method

Section titled “ICustomFunctionContext<TValue>.TryGetService<TService>() Method”

Attempts to get an instance of the given TService from the IActivatedContainer.

HAKOM.ErrorHandling.Core.Net.Api.Result<TService> TryGetService<TService>()
where TService : notnull;

TService

Signifies which service to get.

HAKOM.ErrorHandling.Core.Net.Api.Result<TService>
A Result<TValue> containing the desired service, if successful and an exception, if not.

© 2026 Volue.Version v0.6.38017 November 2026