Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OnShutdown event in a Windows Service
Message
De
27/03/2014 16:35:14
 
 
À
27/03/2014 16:06:17
Information générale
Forum:
ASP.NET
Catégorie:
Autre
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:
01597508
Vues:
29
And here http://www.vbdotnetforums.com/windows-services/31889-shutdown-intercept-service.html

>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.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform