Method RunMethodAsync
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
IScriptRunIScriptRun
associated this script method.assembly
AssemblyAssembly contains method to execute.
method
stringName of method to execute.
obj
objectObject, contains method to execute.
args
object[]Array of method's parameters.
cancellationToken
CancellationTokenCancellation token.