如果过如何打开Windows服务上。从web应用进行控制 [英] how to turn windows service on if its off. control it from webapplication

查看:106
本文介绍了如果过如何打开Windows服务上。从web应用进行控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想打开的窗口服务上,当它熄灭。
是否有可能通过code键使从C#web应用程序?
我使用asp.net mvc的和C#。

i want to turn windows service on when it is off. is it possible to make via code from web application with c#? i am using asp.net mvc and c#.

推荐答案

您正在寻找的<一个href=\"http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicecontroller.aspx\"><$c$c>ServiceController类。

You're looking for the ServiceController class.

这篇关于如果过如何打开Windows服务上。从web应用进行控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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