Method RunAsync
RunAsync(string[], CancellationToken)
Executes script asynchronously starting from the main entry point.
public virtual Task<object> RunAsync(string[] args = null, CancellationToken cancellationToken = default)
Parameters
args
string[]Specifies main method arguments.
cancellationToken
CancellationTokenCancellation token.