Table of Contents

Method RunMethodAsync

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

RunMethodAsync(IScriptRun, Assembly, string, object, object[], CancellationToken)

Executes specified method asynchronously.

public static Task<object> RunMethodAsync(IScriptRun scriptRun, Assembly assembly, string method, object obj, object[] args, CancellationToken cancellationToken)

Parameters

scriptRun IScriptRun

IScriptRun associated this script method.

assembly Assembly

Assembly contains method to execute.

method string

Name of method to execute.

obj object

Object, contains method to execute.

args object[]

Array of method's parameters.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<object>

An object containing return value of the executed method.