C# Windows Service Failure Restart

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top