在运行时更改Windows服务的连接 [英] change connection for windows service in runtime

查看:69
本文介绍了在运行时更改Windows服务的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何通过Windows应用程序在运行时更改Windows服务的连接方式

谢谢
Shery

Hi
how can I change the connectionsting for windows service in run time through Windows application

Thanks
Shery

推荐答案

您需要一种通过WinApp连接到Windows服务的方法(TCP很好),想必您的WinApp已经可以连接到您的服务,因此只需发送一个以新连接字符串为参数的新连接字符串命令".
You need a way to connect to the Windows Service through your WinApp (TCP is good), presumably your WinApp can already connect to your service, so just send a "new connection string command" with the new connection string as a parameter.


这篇关于在运行时更改Windows服务的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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