Universal Windows Service Class Library

Service.OnShutdown Method 

This function will be called from windows service management that computer is shutting down.

protected override void OnShutdown();

Remarks

If the computer is shutting down this function tells the Scheduler to stop working.

See Also

Service Class | uws Namespace | Scheduler