I have got a windows service written in .NET and I need to be able to implement a self-restarting feature for it.
E.g. service constantly monitors the environment in runs in and once a value of the environmental variable reaches its threashold value the service must restart itself.
What would be the easiest way to do it?