Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OnShutdown event in a Windows Service
Message
From
27/03/2014 16:06:17
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
OnShutdown event in a Windows Service
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01597504
Message ID:
01597504
Views:
50
Has anyone made use of the OnShutdown event in a Windows Service? I see there is an event for that. So, we can plug code in there. However, this is for someone who would reboot the server. While the service is in a loop, I would like to block the shutdown and send a message to the user, such as we see on regular services where we have to wait until the process finishes its loop, current process or else, and then that warning goes off by itself. There is still the possibility that the user can force an immediate reboot without waiting. But, that is ok. This is just how Windows is. At least, I need to send something to the user so he would know to wait a few seconds for an ongoing process to complete.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform