C# Windows Service Failure Restart

  • Thread starter Thread starter HJ
  • Start date Start date
H

HJ

The Windows platform provides a mechanism to
automatically restart a service when a failure occurs in
the 'Recovery' tab in the services panel. It allows you
to specify actions on first, second and subsequent
failures.

My question is this: How does my C# service indicate to
windows that it is stopping because of a failure, so I
can use the built-in Windows failure mechanism?

Thanks,
-- HJ
 
Back
Top