RunFunctionAsync Method
RunFunctionAsync(String, Object[], CancellationToken)
Executes specified function asynchronously.
Declaration
public Task<object> RunFunctionAsync(string function, object[] args = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
String | function | Name of function to execute. |
Object[] | args | Array of function's parameters. |
CancellationToken | cancellationToken | Cancellation token. |
Returns
Type | Description |
---|---|
Task<Object> | An object containing return value of the executed function. |