The ConnectionProgressStatus event is triggered when the state of the connection progress changes.
Namespace – ABSuite.AccessLayer.Connector.Core
Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)
Syntax
event EventHandler<InformationEventArgs> ConnectionProgressStatus
Using the IConnection Interface for the ConnectionProgressStatus Event
The following code is an example of using the CloseRequest event:
// Register for the ConnectionProgressStatus event ABSConnection.ConnectionProgressStatus += HandleConnectionProgress; // HandleConnectionProgress is the handler for processing the // ConnectionProgressStatus event that is triggered when the state // of the Connection processing changes. public void HandleConnectionProgress(object sender, InformationEventArgs args) { // Check the connection information and log a message InformationEventArgs.InformationType iType = (InformationEventArgs.InformationType)args.Information; if (iType == InformationEventArgs.InformationType.Connected) ApplicationLogger.LogInfo(() => string.Format("Client connected successfully to the Host system!")); if (iType == InformationEventArgs.InformationType.Connecting) ApplicationLogger.LogInfo(() => string.Format("Client is connecting to the Host system.")); if (iType == InformationEventArgs.InformationType.ConnectionFailed) ApplicationLogger.LogInfo(() => string.Format("Client could not connect to the Host system!")); If (args.Info != null) ApplicationLogger.LogInfo(() => string.Format("Connection progress information: {0}",args.Info)); }