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
channelCodeChannelCode channel where this function is requested
functionNamestringName of the function
argumentsobject[]Function arguments
Returns
Constructors
CustomAsyncFunctionResolver(object, nint)
public CustomAsyncFunctionResolver(object @object, nint method)
Parameters
Methods
BeginInvoke(CodeChannel, string, object?[], AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(CodeChannel channel, string functionName, object?[] arguments, AsyncCallback callback, object @object)
Parameters
channelCodeChannelfunctionNamestringargumentsobject[]callbackAsyncCallbackobjectobject
Returns
EndInvoke(IAsyncResult)
public virtual Task<object?> EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Returns
Invoke(CodeChannel, string, object?[])
public virtual Task<object?> Invoke(CodeChannel channel, string functionName, object?[] arguments)
Parameters
channelCodeChannelfunctionNamestringargumentsobject[]