Table of Contents

Method RunAsync

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

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 CancellationToken

Cancellation token.

Returns

Task<object>

Return value of the script being executed.