thrift中c#同一个服务怎么运行多个service
2个回答
展开全部
//多服务一个宿主程序时必须注间以下要点:
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"
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询