Process monitoring with Warden

Hello folks here comes another one Watcher which is responsible for the process monitoring.
This one isn’t really sophisticated, as there isn’t not much to do in terms of the process validation, yet you might find it useful under certain situations.


 

The Process Watcher comes available as a NuGet package:

Having this guy installed, we can move further with the actual implementation:

In that scenario, we want to verify that the process named mongod is running and on top of that, it has a PID of 1000 (as long as it makes any sense, which probably it doesn’t).
Surely, we can achieve the same result by using the extension methods:

The process watcher has its own result type:

And you can provide your own implementation of the process monitoring simply bo passing the custom IProcessService into the WithProcessServiceProvider() method:

To find out a little bit more details about this watcher, please take a look at the wiki.

3 Comments Process monitoring with Warden

  1. Pingback: C─▒vata

  2. Pingback: Astropay

  3. Pingback: Otopay

Leave A Comment

Your email address will not be published. Required fields are marked *