IConnection.DownLoadComplete Event

The DownLoadComplete event is triggered when the required assemblies for the client session have been downloaded successfully.

Namespace – ABSuite.AccessLayer.Connector.Core

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

Syntax

event EventHandler<ConnectionDownLoadCompleteEventArgs> 
DownLoadComplete

Using the IConnection Interface for the DownLoadComplete Event

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

// Register for the DownLoadComplete event
ABSConnection.DownLoadComplete += HandleDownloadComplete;

// HandleDownloadComplete is the handler for processing the 
// DownLoadComplete event 
// when the required assemblies have been downloaded from the 
// specified Assembly Location 
    public void HandleDownloadComplete(object sender, ConnectionDownLoadCompleteEventArgs args)
    {
        // Log the path to the downloaded files
        string DownloadFilePath = args.Path;
        ApplicationLogger.LogInfo(() => string.Format("Assemblies have been downloaded to: {0}",
        DownloadFilePath));

    }