Click or drag to resize
UpdateControllerShutdownRequested Event

Note: This API is now obsolete.

Occurs when applying an update requires the application to terminate.

Namespace: Kjs.AppLife.Update.Controller
Assembly: Kjs.AppLife.Update.Controller (in Kjs.AppLife.Update.Controller.dll) Version: 5.1.0.9 (5.1.0.9)
Syntax
[ObsoleteAttribute("Use UpdateStarting instead.")]
public event CancelEventHandler ShutdownRequested

Value

Type: System.ComponentModelCancelEventHandler
Remarks

Note: This event is now obsolete. The UpdateStarting event provides additional functionality.

This event is raised whenever the controller needs to shut down its hosting application in order to apply an update. The hosting application is shut down during a call to ApplyUpdate or UpdateInteractive. This event is raised from all UpdateController instances that share the ApplicationId of the UpdateController on which ApplyUpdate was called.

If a handler for this event sets Cancel to , the update will not be applied and ApplyUpdate will return false. If any other controller takes too long to respond, ApplyUpdate will throw an InstanceShutdownException and the update will not be applied. When calling UpdateInteractive, an exception will not be thrown, but the update will not be applied and an error message will be shown to the user.

This method is raised last from the controller that will apply the update, and only if all other controllers did not time out or cancel the event.

When an update is applied using the NoShutdown option, this event is still raised on all instances, but the initiating application will not automatically shut down. The update process can still be cancelled by this event.

See Also