Skip to main content Skip to complementary content

EvaluateExAsync Method

Overloads

EvaluateExAsync(String)

Evaluates an expression and returns the result as a dual.

Example

The client sends:

</p> <p>{</p> <p>&quot;handle&quot;: 1,</p> <p>&quot;method&quot;: &quot;EvaluateEx&quot;,</p> <p>&quot;params&quot;: {</p> <p>&quot;qExpression&quot;: &quot;Sum(Holes)&quot;</p> <p>},</p> <p>&quot;id&quot;: 7,</p> <p>&quot;jsonrpc&quot;: &quot;2.0&quot;</p> <p>}</p> <p>

The engine returns:

</p> <p>{</p> <p>&quot;jsonrpc&quot;: &quot;2.0&quot;,</p> <p>&quot;id&quot;: 7,</p> <p>&quot;result&quot;: {</p> <p>&quot;qReturn&quot;: &quot;361716&quot;</p> <p>}</p> <p>}</p> <p>

EvaluateExAsync(AsyncHandle, String)

Evaluates an expression and returns the result as a dual.

Example

The client sends:

</p> <p>{</p> <p>&quot;handle&quot;: 1,</p> <p>&quot;method&quot;: &quot;EvaluateEx&quot;,</p> <p>&quot;params&quot;: {</p> <p>&quot;qExpression&quot;: &quot;Sum(Holes)&quot;</p> <p>},</p> <p>&quot;id&quot;: 7,</p> <p>&quot;jsonrpc&quot;: &quot;2.0&quot;</p> <p>}</p> <p>

The engine returns:

</p> <p>{</p> <p>&quot;jsonrpc&quot;: &quot;2.0&quot;,</p> <p>&quot;id&quot;: 7,</p> <p>&quot;result&quot;: {</p> <p>&quot;qReturn&quot;: &quot;361716&quot;</p> <p>}</p> <p>}</p> <p>

EvaluateExAsync<T>(AsyncHandle, Func<Response, T>, String)

Evaluates an expression and returns the result as a dual.

Example

The client sends:

</p> <p>{</p> <p>&quot;handle&quot;: 1,</p> <p>&quot;method&quot;: &quot;EvaluateEx&quot;,</p> <p>&quot;params&quot;: {</p> <p>&quot;qExpression&quot;: &quot;Sum(Holes)&quot;</p> <p>},</p> <p>&quot;id&quot;: 7,</p> <p>&quot;jsonrpc&quot;: &quot;2.0&quot;</p> <p>}</p> <p>

The engine returns:

</p> <p>{</p> <p>&quot;jsonrpc&quot;: &quot;2.0&quot;,</p> <p>&quot;id&quot;: 7,</p> <p>&quot;result&quot;: {</p> <p>&quot;qReturn&quot;: &quot;361716&quot;</p> <p>}</p> <p>}</p> <p>

EvaluateExAsync(String)

Evaluates an expression and returns the result as a dual.

Example

The client sends:

</p> <p>{</p> <p>&quot;handle&quot;: 1,</p> <p>&quot;method&quot;: &quot;EvaluateEx&quot;,</p> <p>&quot;params&quot;: {</p> <p>&quot;qExpression&quot;: &quot;Sum(Holes)&quot;</p> <p>},</p> <p>&quot;id&quot;: 7,</p> <p>&quot;jsonrpc&quot;: &quot;2.0&quot;</p> <p>}</p> <p>

The engine returns:

</p> <p>{</p> <p>&quot;jsonrpc&quot;: &quot;2.0&quot;,</p> <p>&quot;id&quot;: 7,</p> <p>&quot;result&quot;: {</p> <p>&quot;qReturn&quot;: &quot;361716&quot;</p> <p>}</p> <p>}</p> <p>

Declaration

      public Task<FieldValue> EvaluateExAsync([QixName("qExpression")] string expression)
    

Parameters

Type Name Description
System.String expression

Expression to evaluate.

Returns

Type Description
System.Threading.Tasks.Task<FieldValue>

Implements

EvaluateExAsync(AsyncHandle, String)

Evaluates an expression and returns the result as a dual.

Example

The client sends:

</p> <p>{</p> <p>&quot;handle&quot;: 1,</p> <p>&quot;method&quot;: &quot;EvaluateEx&quot;,</p> <p>&quot;params&quot;: {</p> <p>&quot;qExpression&quot;: &quot;Sum(Holes)&quot;</p> <p>},</p> <p>&quot;id&quot;: 7,</p> <p>&quot;jsonrpc&quot;: &quot;2.0&quot;</p> <p>}</p> <p>

The engine returns:

</p> <p>{</p> <p>&quot;jsonrpc&quot;: &quot;2.0&quot;,</p> <p>&quot;id&quot;: 7,</p> <p>&quot;result&quot;: {</p> <p>&quot;qReturn&quot;: &quot;361716&quot;</p> <p>}</p> <p>}</p> <p>

Declaration

      public Task<FieldValue> EvaluateExAsync(AsyncHandle asyncHandle, [QixName("qExpression")] string expression)
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

System.String expression

Expression to evaluate.

Returns

Type Description
System.Threading.Tasks.Task<FieldValue>

Implements

EvaluateExAsync<T>(AsyncHandle, Func<Response, T>, String)

Evaluates an expression and returns the result as a dual.

Example

The client sends:

</p> <p>{</p> <p>&quot;handle&quot;: 1,</p> <p>&quot;method&quot;: &quot;EvaluateEx&quot;,</p> <p>&quot;params&quot;: {</p> <p>&quot;qExpression&quot;: &quot;Sum(Holes)&quot;</p> <p>},</p> <p>&quot;id&quot;: 7,</p> <p>&quot;jsonrpc&quot;: &quot;2.0&quot;</p> <p>}</p> <p>

The engine returns:

</p> <p>{</p> <p>&quot;jsonrpc&quot;: &quot;2.0&quot;,</p> <p>&quot;id&quot;: 7,</p> <p>&quot;result&quot;: {</p> <p>&quot;qReturn&quot;: &quot;361716&quot;</p> <p>}</p> <p>}</p> <p>

Declaration

      public Task<T> EvaluateExAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qExpression")] string expression)
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

System.Func<Response, T> onResult

Continuation function

System.String expression

Expression to evaluate.

Returns

Type Description
System.Threading.Tasks.Task<T>

Type Parameters

Name Description
T

Implements

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!