Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EvaluationFunction"/> class.
 /// </summary>
 public EvaluationFunction(
     PureFunctionAsync functionAsync,
     FunctionAdditionalSelectResolver additionalSelectResolver = null,
     FunctionPathsResolver pathsResolver = null)
 {
     _functionAsync            = functionAsync ?? throw new ArgumentNullException(nameof(functionAsync));
     _additionalSelectResolver = additionalSelectResolver;
     _pathsResolver            = pathsResolver;
 }
Esempio n. 2
0
 public TemplateFunction(
     PureFunction function,
     FunctionAdditionalSelectResolver additionalSelectResolver = null,
     FunctionPathsResolver pathsResolver = null)
 {
     _function = function ?? throw new ArgumentNullException(nameof(function));
     _additionalSelectResolver = additionalSelectResolver;
     _pathsResolver            = pathsResolver;
 }