The LoadAsync method loads a specified ispec or class in the runtime system for a session through an asynchronous call. As this is an asynchronous call, the calling process is not blocked. An event handler receives a new TransmissionObject when the call completes.
Namespace – ABSuite.AccessLayer.Connector.Core
Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)
Syntax
Task<TransmissionObject> LoadAsync( string name, bool withSwitch = true )
Arguments
name – System.String
This argument provides the name of the ispec or class to be loaded.
withSwitch – System.Boolean
This argument is optional. It determines whether a TransmissionObjectChanged event is raised. By default, this is set to true.
Return Value
This method returns a transmission object.
Using the IRtConnection Interface for the LoadAsync Method
The following code is an example of using the LoadAsync method:
await connection.LoadAsync("Cust")