IApplicationService.StopService Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Called by an application in order to stop the application extension service.
Assembly: System.Windows (in System.Windows.dll)
You can implement this method in order to stop your service and perform any necessary clean up.
This method is called after the Application.Exit event. If multiple services are registered, their StopService methods are called in the reverse of the service registration sequence.
You cannot reliably perform asynchronous operations initiated within this method.