ITcHmiSrvExtAsyncHost.ExecuteAsync Method (Context, Command)

Executes a single Command in the domain of the specified Context as an asynchronous operation.

Namespace:  TcHmiSrv.Core
Assembly:  TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 1.3.0.0

Syntax

C#

Task<(ErrorValue , Context , Command )> ExecuteAsync(
    Context context,
    Command command
)

Parameters

context

Type: TcHmiSrv.Core.Context
The Context under which the command should be executed.

command

Type: TcHmiSrv.Core.Command
The Command to execute.

Return Value

Type: Task.ValueTuple.ErrorValue, Context, Command..
A Task.TResult. that represents the asynchronous operation. The Result of the Task.TResult. returns a ValueTuple.T1, T2, T3. containing HMI_SUCCESS if executing the command succeeded, the Context and the executed Command; otherwise, any ErrorValue that best describes which error has occurred.

Reference

ITcHmiSrvExtAsyncHost Interface

ExecuteAsync Overload

TcHmiSrv.Core Namespace