Dotnet Windows服务使用托管代码设置恢复选项 [英] Dotnet Windows service setting up Recovery option using Managed code

查看:65
本文介绍了Dotnet Windows服务使用托管代码设置恢复选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用.net Framework 4.6.1开发的Windows服务。在安装服务时,我要以编程方式设置服务的恢复选项。是否有任何使用托管代码的选项来执行此活动。

I'm having a windows service which is developed using .net framework 4.6.1. While installing the service, I want to Programmatically set the Recovery option of the service. Is there any option using managed code to do this activity.

推荐答案

我有一个工具调用Topshelf( http://topshelf-project.com/ ),这有助于我以编程方式设置恢复选项。只是回答我自己的问题。对其他人会有所帮助。

I got a tool call Topshelf (http://topshelf-project.com/ ) Which is helping me to set Recovery option programmatically. Just answering my own question. It will be helpful for others.

这篇关于Dotnet Windows服务使用托管代码设置恢复选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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