IMethodExecuter.CallAsync Method

The CallAsync method executes a specified public method defined in the AB Suite system.

Namespace – ABSuite.AccessLayer.Connector.Core

Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)

Syntax

Task<Object> CallAsync(
   string method,
   Object[] args,
   bool[] modifiers
)

Arguments

Return Value

If this method succeeds, it returns an object containing the result of the public method call; otherwise, it returns an error message.

Using the IMethodExecuter Interface for the CallAsync Method

The following code is an example of using the CallAsync method:

object resultObj = ABSConnection.CallAsync("Method1",  // Name of public method
   new object [] { "Hello" },   // Array of objects specifying parameters
   new bool[] { true }); // Parameter modifiers determine pass by reference or value