使用WCF的不同winform应用程序之间的通信? [英] Communication between different winform applications using WCF?

查看:73
本文介绍了使用WCF的不同winform应用程序之间的通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有不同的winform应用程序,App1,app2,app3等。 App1调用app2的exe(使用DOS命令窗口)并发送消息以启动app2。 app2开始执行,一旦完成任务,它就会向app1发送回执行成功的消息。一旦app1收到来自应用程序2的消息进行成功的exectuion然后它调用app3的exe并发送消息以启动并等待直到收到app3的sucessfulll执行的确认。并调用app4等。所有应用程序都是以c#.net win形式开发的,并且在同一系统上。如何使用WCF实现此功能?



之前在foxpro中编写了相同的代码,并且使用内存管理实现了此功能。

I have different winform applications, App1, app2, app3 and so on. App1 calls the exe of app2 (using DOS command window) and sends a message to start the app2. The app2 starts executing and once it finishes its task it sends back the message to app1 that the execution was successful. Once app1 recieves message from app 2 for the sucessful exectuion then it calls the exe of app3 and sends the message to start and waits untill recieves the confirmation of the sucessfulll execution of app3. and call app4 and so on. All the application are developed in c#.net win forms and are on same system. How can I achieve this functionality using WCF?

Earlier the same code was written in foxpro and this func was achieved using memory management.

推荐答案

请参阅 this [ ^ ]有关如何使用的文章使用WCF实现进程间(应用程序间)通信。



/ ravi
See this[^] article on how to achieve inter-process (inter-app) communication using WCF.

/ravi


这篇关于使用WCF的不同winform应用程序之间的通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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