如何最好地在 AppDomains 之间进行通信? [英] How best to communicate between AppDomains?

查看:27
本文介绍了如何最好地在 AppDomains 之间进行通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序需要在多个 AppDomain 之间发送中等数量的消息.我知道我可以使用远程处理来实现这一点,但我也注意到存在跨域委托.有没有人看过这种问题?

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 和命名管道绑定取得了很好的成功.使用命名管道不会产生网络流量并使用二进制编码,因此它应该非常快,而且不会牺牲在未来扩展场景中的分发能力.

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.

请参阅此处了解更多详细信息,包括实现的链接示例.

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

这篇关于如何最好地在 AppDomains 之间进行通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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