Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OnShutdown event in a Windows Service
Message
De
27/03/2014 16:06:17
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
OnShutdown event in a Windows Service
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01597504
Message ID:
01597504
Vues:
51
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform