两个控制台应用程序之间的通信 [英] communication between two console application

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

问题描述

方案是,我必须创建一个进行一些计算的控制台应用程序.现在,我有另一个控制台应用程序,该应用程序用于停止,暂停和运行第一个控制台应用程序.当我通过第二个控制台应用程序停止或暂停第一个控制台应用程序时,它将数据存储到文件中.谁能让我知道如何实现这一目标? :confused:

Hi, The scenario is, I have to create a console application which is doing some calculation. Now I have another console application which is used to stop, pause and run the first console application. When I stop or pause the first console application through the second console application it will store the data into a file. Can anyone let me know how to achieve this? :confused:

推荐答案

为什么需要两个控制台应用程序?对我来说,这听起来像是一项家庭作业.如果可以在控制台应用程序中使用它,我怀疑您想使用WCF,否则您将不得不使用WCF直接封装的一种机制.
Why do you need two console apps ? Sounds like a homework task to me. I suspect you want to use WCF, if it''s possible to use it in a console app, otherwise you''d have to use one of the mechanisms that WCF encapsulates directly.


实际上我有一个要求...我必须使用两个控制台应用程序来实现此任务...并且两个控制台应用程序都可以位于不同的计算机中...:confused:
Actually I have a requirement...I have to implement this task with two console application...and both the console applications can be in the different machine...:confused:


这篇关于两个控制台应用程序之间的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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