IConnection.StatusChanged Event

The StatusChanged event is triggered when the status information is updated by the runtime system.

Namespace – ABSuite.AccessLayer.Connector.Core

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

Syntax

event EventHandler StatusChanged

Using the IConnection Interface for the StatusChanged Event

The following code is an example of using the StatusChanged event:

// Register for the StatusChanged event
ABSConnection.StatusChanged += HandleStatusChanged;

// HandleStatusChanged is the handler for processing the 
// StatusChanged event when the status information sent by the Host 
// application changes.  
   public void HandleStatusChanged(object sender, EventArgs args)
   {
    // The status information has changed. Check the Status property 
       string statusInfo = ABSConnection.Status;
       ApplicationLogger.LogInfo(() => string.Format("Current Status info: {0}", statusInfo));

   }