The function tells the scheduler that computer is shutting down.
Due to the OnStopWork function this one tells the working thread that it has to stop it's work because computer is shutting down.
It would be called from the OnShutdown method which receives the shutdown event from windows service management.
Scheduler Class | uws Namespace | Service