Integrating Application Shutdown

Using AppLife Manager, no direct integration into your application source code is required for maintaining the application. By integrating an AppLife Update controller into your application, you can ensure any shutdown code is properly executed by instantiating an instance of the Update Controller and listening for the UpdateStarting event. This option is only available for applications created in Microsoft .Net

To integrate, reference the Kjs.AppLife.Update.Controller.dll into your application. This assembly is located in the AppLife Update Install Directory\Public Assemblies folder.  This assembly can be freely distributed with your applications.

Once referenced, instantiate an instance of the UpdateController class and set the ApplicationId property to match your application.  The Update Controller instance must be scoped to stay instantiated during the life of the application.

 

The Integrated API configuration property must also be checked.  Once you have an Update Controller integrated and the AppLife Manager configuration set, the Update Controller will shut down your application as an update is started and you can interact with the process by listening to the UpdateStarting event.

Note:  Your application can cancel the update by setting the UpdateStarting event argument response.  See the AppLife Update Controller API Documentation for more information.