Table of Contents

Method RunMethodAsync

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

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

Executes specified method asynchronously.

public virtual Task<object> RunMethodAsync(string method, object obj = null, object[] args = null, CancellationToken cancellationToken = default)

Parameters

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.