The BeginInvokeAction method is for clients that require an Action method to be processed on the UI thread to avoid Cross Thread Operation exceptions. Note that this method is mainly used by remote clients that access the WCF Gateway.
Namespace – ABSuite.AccessLayer.Connector.Core
Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)
Syntax
void BeginInvokeAction(
Action action
)
Argument
action – System.Action
This argument specifies the action method to be invoked.
Using the IRtConnection Interface for the BeginInvokeAction Method
The following code is an example of using the BeginInvokeAction method to fire the TransmissionObjectChanged event with a new TransmissionObject:
this.host.BeginInvokeAction(() => { this.host.FireTransmissionObjectChanged(new ConnectionEventArgs(new TransmissionObject() { State = entity.Status == ReturnCode.DataModelVersionCheckFailed ? TransmissionReturnCode.DataModelVersionCheckFailed : TransmissionReturnCode.Ok, ObjectClassName = entity.Name, Datamodel = Serializer.Deserialize<object>(entity.Value, this.host.GetDataModelType(entity.Name)) })); });