Skip to content

Reference

IOpcAsyncMethodCommand Members

Defines an asynchronous command used as the implementation of a async method.

Reference

IOpcAsyncMethodCommand Members ​

Type
IOpcAsyncMethodCommand
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Inherits members from IOpcMethodCommand.

Methods ​

ExecuteAsync ​

Performs the tasks necessary to implement the logic associated with a specific async method using the context and inputArguments specified.

csharp
Task ExecuteAsync(
    OpcMethodContext context,
    IList<object> inputArguments,
    IList<object> outputArguments)
vbnet
Function ExecuteAsync(
    context As OpcMethodContext,
    inputArguments As IList(Of Object),
    outputArguments As IList(Of Object)) As Task

Parameters

NameTypeDescription
contextOpcMethodContextThe OpcMethodContext which provides the contextual information required to execute the async method.
inputArgumentsIList<Object>The generic list of object values to use / respect during the execution of the async method.
outputArgumentsIList<Object>The generic list of object values to use for out, ref (in Visual Basic ByRef) and returned values.

Returns

Task

Remarks

Any OPC UA related result information is to be set using the Result property of the context.

This method is (to be) only called after the call to CanExecute and CanUserExecute evaluates to the value true.