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