Ref: https://www.magnifez.com/exception-handling-in-plugin-in-ms-crm-using-plugin-trace-log-feature/
How to check the status of windows service using c#
C# code to check status of a windows service Below is the C# code which return the status of a windows service running on a machine/server on passing correct name. One use case of it is that if we want to monitor some specific services which are critical to operation, we can schedule our application... Continue Reading →