Method RunAsync
RunAsync(IScriptRun, Assembly, object[], CancellationToken)
Executes script asynchronously starting from the main entry point.
public static Task<object> RunAsync(IScriptRun scriptRun, Assembly assembly, object[] args, CancellationToken cancellationToken)
Parameters
scriptRun
IScriptRunIScriptRun
associated this script method.assembly
AssemblyAssembly contains method to execute.
args
object[]Specifies main method arguments.
cancellationToken
CancellationTokenCancellation token.