Method RunAsync
RunAsync(string[], CancellationToken)
When implemented by a class, executes script asynchronously starting from the main entry point.
Task<object> RunAsync(string[] args = null, CancellationToken cancellationToken = default)Parameters
- argsstring[]
- Specifies main method arguments. 
- cancellationTokenCancellationToken
- Cancellation token.