Killing

An app transitions from running directly to not running (the red “Killing” arrow in Figure 6.1) only when it is forced to do so, as with the following conditions:

The user signs out (which includes shutting down or restarting the device) and the app hasn’t already been suspended.

The user invokes “End task” in Task Manager, or an equivalent command in a command-line tool such as TaskKill.

The app hangs, or the code it executes in response to suspension takes longer than 5 seconds, or the code it executes in response to launch/activation (while the splash screen is showing) takes longer than 15 seconds.

The app is under the debugger’s control and the developer ends the process in Visual Studio.

The app calls Application’s

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.