G
Guest
Hi
I have developed a Windows service in C# (inherited from System.ServiceProcess.ServiceBase) and, after the service has successfully started, when I catch an exception I'd like to write the code for the service to stop itself. Right now, when an exception occurs the service seems to halt but it still shows as "Started" in the Services window. Could someone please suggest the best way to stop the service so the "Started" doesn't appear
Thanks
I have developed a Windows service in C# (inherited from System.ServiceProcess.ServiceBase) and, after the service has successfully started, when I catch an exception I'd like to write the code for the service to stop itself. Right now, when an exception occurs the service seems to halt but it still shows as "Started" in the Services window. Could someone please suggest the best way to stop the service so the "Started" doesn't appear
Thanks