Use ServiceController Class present in System.ServiceProcess namespace to determine the status of the service. Have a timer in the application which is monitoring the service. The timer should poll service to determine its status. ServiceController c = new ServiceController("<servicename>", "<machine name>");
Liked By
Write Answer
How to find out if a service present in different machine has been stopped or started.
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
09-Nov-2011Have a timer in the application which is monitoring the service. The timer should poll service to determine its status.
ServiceController c = new ServiceController("<servicename>", "<machine name>");