TcHmiAsyncLogger.SendAsync Method (ITcHmiSrvExtAsyncHost, Context, Severity, String, .String.)

Sends a Message with the specified ITcHmiSrvExtAsyncHost, Context, name, Severity and parameters as an asynchronous operation.

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

Syntax

C#

public static Task<ErrorValue> SendAsync(
    ITcHmiSrvExtAsyncHost host,
    Context context,
    Severity severity,
    string name,
    params string[] parameters
)

Parameters

host

Type: TcHmiSrv.Core.ITcHmiSrvExtAsyncHost
The ITcHmiSrvExtAsyncHost that is used to send the Message.

context

Type: TcHmiSrv.Core.Context
The Context of the Message to send.

severity

Type: TcHmiSrv.Core.Severity
The Severity of the Message to send.

name

Type: System.String
The name of the Message to send.

parameters

Type: .System.String.
The parameters of the Message to send.

Return Value

Type: Task.ErrorValue.
The Task.TResult. returned by SendAsync(Context, Message).

Reference

TcHmiAsyncLogger Class

SendAsync Overload

TcHmiSrv.Core.General Namespace