Giving your Windows Service lots of time to finish (F#)
Normally, your Windows services should finish within seconds of Windows telling them that it’s time to quit. However, in some (hopefully rare) cases, you might need several minutes to make a clean exit, much to the disgust of your users. Since
ServiceBase.RequestAdditionalTime
may not cut it, you must follow the example of some Microsoft services, like TrustedInstaller and Windows Update, who use a different approach.