EvaluateAsync Method
Overloads
| EvaluateAsync(String) | 
 Evaluates an expression and returns the result as a string. ExampleThe client sends: 
              
 The engine returns: 
               | |
| EvaluateAsync(AsyncHandle, String) | 
 Evaluates an expression and returns the result as a string. ExampleThe client sends: 
              
 The engine returns: 
               | |
| EvaluateAsync<T>(AsyncHandle, Func<Response, T>, String) | 
 Evaluates an expression and returns the result as a string. ExampleThe client sends: 
              
 The engine returns: 
               | 
EvaluateAsync(String)
Evaluates an expression and returns the result as a string.
Example
The client sends:
       {
     "handle": 1,
     "method": "Evaluate",
     "params": {
         "qExpression": "Sum(Holes)"
     },
     "id": 6,
     "jsonrpc": "2.0"
 }
    
    
The engine returns:
       {
     "jsonrpc": "2.0",
     "id": 6,
     "result": {
         "qReturn": "361716"
     }
 }
    
  Declaration
      Task<string> EvaluateAsync([QixName("qExpression")] string expression)
    
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | expression | Expression to evaluate. | 
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<System.String> | 
EvaluateAsync(AsyncHandle, String)
Evaluates an expression and returns the result as a string.
Example
The client sends:
       {
     "handle": 1,
     "method": "Evaluate",
     "params": {
         "qExpression": "Sum(Holes)"
     },
     "id": 6,
     "jsonrpc": "2.0"
 }
    
    
The engine returns:
       {
     "jsonrpc": "2.0",
     "id": 6,
     "result": {
         "qReturn": "361716"
     }
 }
    
  Declaration
      Task<string> EvaluateAsync(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<System.String> | 
EvaluateAsync<T>(AsyncHandle, Func<Response, T>, String)
Evaluates an expression and returns the result as a string.
Example
The client sends:
       {
     "handle": 1,
     "method": "Evaluate",
     "params": {
         "qExpression": "Sum(Holes)"
     },
     "id": 6,
     "jsonrpc": "2.0"
 }
    
    
The engine returns:
       {
     "jsonrpc": "2.0",
     "id": 6,
     "result": {
         "qReturn": "361716"
     }
 }
    
  Declaration
      Task<T> EvaluateAsync<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 |