Table of Contents

Delegate Expressions.CustomAsyncFunctionResolver

Namespace
DuetControlServer.Codes.Meta
Assembly
DuetControlServer.dll

Delegate for asynchronously resolving custom meta G-code fuctions

public delegate Task<object?> Expressions.CustomAsyncFunctionResolver(CodeChannel channel, string functionName, object?[] arguments)

Parameters

channel CodeChannel

Code channel where this function is requested

functionName string

Name of the function

arguments object[]

Function arguments

Returns

Task<object>

Result value

Constructors

CustomAsyncFunctionResolver(object, nint)

public CustomAsyncFunctionResolver(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(CodeChannel, string, object?[], AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(CodeChannel channel, string functionName, object?[] arguments, AsyncCallback callback, object @object)

Parameters

channel CodeChannel
functionName string
arguments object[]
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual Task<object?> EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

Task<object>

Invoke(CodeChannel, string, object?[])

public virtual Task<object?> Invoke(CodeChannel channel, string functionName, object?[] arguments)

Parameters

channel CodeChannel
functionName string
arguments object[]

Returns

Task<object>