Given this basic set of code
1 | Public Class SasdDirWatchService : Inherits System.ServiceProcess.ServiceBase |
I think it’s possible to expand this a bit so that when the service is being started or stopped you get messages
like ‘Starting’ and ‘Started’.
Here is some revised code
1 | Public Enum ServiceState |