RunAsync Method
RunAsync(String[], CancellationToken)
When implemented by a class, executes script asynchronously starting from the main entry point.
Declaration
Task<object> RunAsync(string[] args = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
String[] | args | Specifies main method arguments. |
CancellationToken | cancellationToken | Cancellation token. |
Returns
Type | Description |
---|---|
Task<Object> | Return value of the script being executed. |