Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在考虑创建一个通用消息队列来处理各种进程间消息。(此时,WCF 不是一个选项。)因此,与其为特定消息设置 10-15 个不同的队列,不如使用 1 个“包罗万象”的队列。
显然,向这个队列发送消息不是问题。每个收件人都会收听队列中的新消息,然后“偷看”它们,但我正在寻找一种干净/有效的方法来做到这一点。干净我的意思是一种不需要每个收件人阅读每条消息的正文的方法。
使用 System.Messaging.Message.AppSpecific (Integer) 指定收件人。