简体   繁体   English

2 Windows Services C#之间的管道

[英]Pipe between 2 Windows Services C#

Is there any way to build and connect two Windows Services through a pipe(anonymous or named)? 有什么方法可以通过管道(匿名或命名)构建和连接两个Windows Services? The first service waits for a custom command and when the user inputs that through a windows form app, the first service sends that command through a pipe to the second service. 第一个服务等待一个自定义命令,当用户通过Windows窗体应用程序输入该命令时,第一个服务将通过管道将该命令发送给第二个服务。 The second service waits for the command and when receives it, it creates a file with that command.My issue is to create pipe between Windows Service Applications not WCF Service Application. 第二个服务等待命令,并在收到命令后使用该命令创建一个文件。我的问题是在Windows服务应用程序而不是WCF服务应用程序之间创建管道。

I need to achieve this using C# Windows Service Application, not WCF Service Application! 我需要使用C#Windows服务应用程序而不是WCF服务应用程序来实现这一目标!

What you are requesting is possible. 您所要求的是可能的。

Here is a basic tutorial for building up wcf-services (and -clients): 这是构建wcf-services(和-clients)的基本教程:

http://msdn.microsoft.com/en-us/library/ms734712(v=vs.110).aspx http://msdn.microsoft.com/zh-CN/library/ms734712(v=vs.110).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM