[]
Represents the base type for async custom function.
public abstract class AsyncCustomFunction : CustomFunction
Initializes an instance of a custom function.
protected AsyncCustomFunction(string name, FunctionValueType result, Parameter[] parameters)
name
stringThe name of the custom function.
result
FunctionValueTypeSpecifies the return type for the custom function.
parameters
Parameter[]Specifies the parmeters for the custom function.
Initializes an instance of a custom function.
protected AsyncCustomFunction(string name, FunctionValueType result)
name
stringThe name of the custom function.
result
FunctionValueTypeSpecifies the return type for the custom function.
Initializes an instance of a custom function.
protected AsyncCustomFunction(string name, string description, FunctionValueType result, Parameter[] parameters)
name
stringThe name of the custom function.
description
stringThe description of the custom function.
result
FunctionValueTypeSpecifies the return type for the custom function.
parameters
Parameter[]Specifies the parmeters for the custom function.
Calculate the function.
public override sealed object Evaluate(object[] arguments, ICalcContext context)
arguments
object[]the value collection of the arguments
context
ICalcContextthe context of the calculation.
the result of the function.
Calculate the function asynchronously.
protected abstract Task<object> EvaluateAsync(object[] arguments, ICalcContext context)
arguments
object[]The value collection of the arguments
context
ICalcContextThe context of the calculation.
The result of the function.