ITcHmiSrvExtAsyncHost Interface

Provides an interface to synchronously and asynchronously communicate with the TwinCAT HMI server.
All methods that do not end with Async are executed synchronously and block until the specific request has been sent to the TwinCAT HMI server and a corresponding response has been received.
The other methods that end with Async are executed asynchronously and do not block. Instead, they return a Task or TaskTResult that represents the asynchronous operation.


Namespace: TcHmiSrv.Core
Assembly: TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 3.1.7447.0+85f9b473a1dd11b8f3e5c9a182fd1901975e46f9

Syntax

C#

public interface ITcHmiSrvExtAsyncHost

The ITcHmiSrvExtAsyncHost type exposes the following members.

Methods

 

Name

Description

ITcHmiSrvExtAsyncHost Interface 1:

DeleteConfigValue

Deletes a Value from the configuration of the TwinCAT HMI server extension.

ITcHmiSrvExtAsyncHost Interface 2:

DeleteConfigValueAsync

Deletes a Value from the configuration of the TwinCAT HMI server extension as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 3:

Execute(Context, Command)

Executes a single Command in the domain of the specified Context.

ITcHmiSrvExtAsyncHost Interface 4:

Execute(Context, CommandGroup)

Executes the specified CommandGroup inside any domain.

ITcHmiSrvExtAsyncHost Interface 5:

ExecuteAsync(Context, Command)

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

ITcHmiSrvExtAsyncHost Interface 6:

ExecuteAsync(Context, CommandGroup)

Executes the specified CommandGroup inside any domain as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 7:

GetConfigValue

Gets the configuration Value at the specified path.

ITcHmiSrvExtAsyncHost Interface 8:

GetConfigValueAsync

Gets the configuration Value at the specified path as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 9:

Localize

Localizes an ILocalizable.

ITcHmiSrvExtAsyncHost Interface 10:

LocalizeAsync

Localizes an ILocalizable as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 11:

NotifyListener

Sends a notification if an Alarm has changed.

ITcHmiSrvExtAsyncHost Interface 12:

NotifyListenerAsync

Sends a notification if an Alarm has changed as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 13:

RegisterListener(Context, IListener)

Registers the specified IListener at the TwinCAT HMI server.

ITcHmiSrvExtAsyncHost Interface 14:

RegisterListener(Context, String, IListener)

Registers the specified IListener at the TwinCAT HMI server for the specified domain.

ITcHmiSrvExtAsyncHost Interface 15:

RegisterListener(Context, IListener, Value)

Registers the specified IListener at the TwinCAT HMI server using the specified settings.

ITcHmiSrvExtAsyncHost Interface 16:

RegisterListener(Context, String, IListener, Value)

Registers the specified IListener at the TwinCAT HMI server for the specified domain using the specified settings.

ITcHmiSrvExtAsyncHost Interface 17:

RegisterListenerAsync(Context, IListener)

Registers the specified IListener at the TwinCAT HMI server as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 18:

RegisterListenerAsync(Context, String, IListener)

Registers the specified IListener at the TwinCAT HMI server for the specified domain as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 19:

RegisterListenerAsync(Context, IListener, Value)

Registers the specified IListener at the TwinCAT HMI server using the specified settings as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 20:

RegisterListenerAsync(Context, String, IListener, Value)

Registers the specified IListener at the TwinCAT HMI server for the specified domain using the specified settings as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 21:

RemoveTemporaryEvent

Sends a notification if an Alarm should be removed.

ITcHmiSrvExtAsyncHost Interface 22:

RemoveTemporaryEventAsync

Sends a notification if an Alarm should be removed as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 23:

RenameConfigValue

Renames a Value in the configuration of the TwinCAT HMI server extension.

ITcHmiSrvExtAsyncHost Interface 24:

RenameConfigValueAsync

Renames a Value in the configuration of the TwinCAT HMI server extension as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 25:

ReplaceConfigValue

Replaces a Value in the configuration of the TwinCAT HMI server extension.

ITcHmiSrvExtAsyncHost Interface 26:

ReplaceConfigValueAsync

Replaces a Value in the configuration of the TwinCAT HMI server extension as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 27:

ResetTemporaryEvents

Triggers a refresh of the list of events provided by a TwinCAT HMI server extension that implements the AlarmProviderListener.

ITcHmiSrvExtAsyncHost Interface 28:

ResetTemporaryEventsAsync

Triggers a refresh of the list of events provided by a TwinCAT HMI server extension that implements the AlarmProviderListener as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 29:

Send(Context, Event)

Adds or updates an Event.

ITcHmiSrvExtAsyncHost Interface 30:

Send(Context, Message)

Adds a Message.

ITcHmiSrvExtAsyncHost Interface 31:

Send(Context, Event, EventLifetime)

Adds or updates an Event.

ITcHmiSrvExtAsyncHost Interface 32:

Send(Context, Message, EventLifetime)

Adds a Message.

ITcHmiSrvExtAsyncHost Interface 33:

SendAsync(Context, Event)

Adds or updates an Event as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 34:

SendAsync(Context, Message)

Adds a Message as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 35:

SendAsync(Context, Event, EventLifetime)

Adds or updates an Event as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 36:

SendAsync(Context, Message, EventLifetime)

Adds a Message as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 37:

SetConfigValue

Tries to add a Value to a map or vector in the configuration of the TwinCAT HMI server extension or update an existing configuration Value. Since the configuration Value is set asynchronously, you cannot rely on the Value really being set after this method returned. Therefore, you must verify this by using OnChange or calling GetConfigValue(Context, String).
Obsolete

ITcHmiSrvExtAsyncHost Interface 38:

SetConfigValueAsync

Tries to add a Value to a map or vector in the configuration of the TwinCAT HMI server extension or update an existing configuration Value as an asynchronous operation. Since the configuration Value is set asynchronously, you cannot rely on the Value really being set after this method returned. Therefore, you must verify this by using OnChange or calling GetConfigValueAsync(Context, String).
Obsolete

ITcHmiSrvExtAsyncHost Interface 39:

SetFriendlyName

Changes the friendly name of a TwinCAT HMI server extension.

ITcHmiSrvExtAsyncHost Interface 40:

SetFriendlyNameAsync

Changes the friendly name of a TwinCAT HMI server extension as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 41:

TryLocalize

Tries to localize an ILocalizable.

ITcHmiSrvExtAsyncHost Interface 42:

TryLocalizeAsync

Tries to localize an ILocalizable as an asynchronous operation.

ITcHmiSrvExtAsyncHost Interface 43:

UnregisterListener

Unregisters the specified IListener at the TwinCAT HMI server. All registered IListeners are unregistered automatically when the extension is shut down.

ITcHmiSrvExtAsyncHost Interface 44:

UnregisterListenerAsync

Unregisters the specified IListener at the TwinCAT HMI server as an asynchronous operation. All registered IListeners are unregistered automatically when the extension is shut down.

Version Information

Supported in: 3.1.7447.0, 2.3.7447.0, 1.10.7447.0

Reference

TcHmiSrv.Core Namespace

Copyright © Beckhoff Automation GmbH & Co. KG