如何使用c#将恢复操作设置为Windows服务 [英] how to set the recovery action to windows service using c#

查看:75
本文介绍了如何使用c#将恢复操作设置为Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我创建了一个窗口服务,我必须将恢复操作设置为我的代码。对于服务的第一次失败,它应该重新启动。与每次后续故障一样,服务应该重新启动。



请帮帮我。



感谢您的时间。

谢谢....

Hi,

I have created a window service ,I have to set the recovery action to my code. For the first failure of the service, It should restart. Like every subsequent Failure ,The service should restart.

Please help me.

Thanks for ur Time .
Thanks....

推荐答案

阅读: http://stackoverflow.com/questions/1633429/install-windows-service-with-recovery-action-to-restart [ ^ ]


这篇关于如何使用c#将恢复操作设置为Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆