如何以最佳方式应用程序域之间的沟通? [英] How best to communicate between AppDomains?

查看:176
本文介绍了如何以最佳方式应用程序域之间的沟通?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个需要一些应用程序域之间送适度高容量的邮件应用程序。我知道,我能实现这个使用远程,但我也注意到,有跨域代表。有没有人看着这样的问题?

I have an application that needs to send a moderately high volume of messages between a number of AppDomains. I know that I could implement this using remoting, but I have also noticed that there are cross-domain delegates. Has anyone looked at this kind of problem?

推荐答案

我曾使用WCF与命名管道结合良好的成功。使用命名管道不会造成任何网络流量和使用二进制编码,所以它应该是pretty的快速不牺牲未来的缩放方案分发的能力。

I have had good success using WCF with a named pipes binding. Using named pipes creates no network traffic and uses binary encoding, so it should be pretty fast without sacrificing the ability to distribute in future scaling scenarios.

编辑: 请参阅<一href="http://stackoverflow.com/questions/50153/interprocess-communication-for-windows-in-c-net-20">here对于包括一个链接到一个实施例的更详细的信息。

Refer here for more detailed information including a link to an implementation example.

这篇关于如何以最佳方式应用程序域之间的沟通?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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