thrift中c#同一个服务怎么运行多个service
答案:2 悬赏:20 手机版
解决时间 2021-01-24 15:51
- 提问者网友:流星是天使的眼泪
- 2021-01-23 19:09
thrift中c#同一个服务怎么运行多个service
最佳答案
- 五星知识达人网友:woshuo
- 2021-01-23 20:44
//多服务一个宿主程序时必须注间以下要点:
Service1的ServiceName 必须 Installer1.Designer.cs 中的 serviceInstaller1.ServiceName 完全一致
//this.ServiceName MUST match this.serviceInstaller1.ServiceName in Installer1.Designer.cs file
//this.ServiceName MUST match this.serviceInstaller2.ServiceName in Installer1.Designer.cs file
//this.ServiceName MUST match this.serviceInstaller3.ServiceName in Installer1.Designer.cs file
//serviceInstaller1中的代码
//this.serviceInstaller1.ServiceName = "Win32MultiServices1";
//Service1中的代码
//this.ServiceName = "Win32MultiServices1"
Service1的ServiceName 必须 Installer1.Designer.cs 中的 serviceInstaller1.ServiceName 完全一致
//this.ServiceName MUST match this.serviceInstaller1.ServiceName in Installer1.Designer.cs file
//this.ServiceName MUST match this.serviceInstaller2.ServiceName in Installer1.Designer.cs file
//this.ServiceName MUST match this.serviceInstaller3.ServiceName in Installer1.Designer.cs file
//serviceInstaller1中的代码
//this.serviceInstaller1.ServiceName = "Win32MultiServices1";
//Service1中的代码
//this.ServiceName = "Win32MultiServices1"
全部回答
- 1楼网友:杯酒困英雄
- 2021-01-23 22:24
你好!
写一个公共类,里面写多个方法对应多个service
仅代表个人观点,不喜勿喷,谢谢。
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯