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
scriptRunIScriptRunIScriptRunassociated this script method.assemblyAssemblyAssembly contains method to execute.
argsobject[]Specifies main method arguments.
cancellationTokenCancellationTokenCancellation token.