Table of Contents

Method RunAsync

Namespace
Alternet.Scripter
Assembly
Alternet.Scripter.v9.dll

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 IScriptRun

IScriptRun associated this script method.

assembly Assembly

Assembly contains method to execute.

args object[]

Specifies main method arguments.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<object>

Return value of the script being executed.