<分区>
我需要具有 3 个端点的 WCF 服务
- 高
- 正常
- 低
大部分消息将通过普通端点和低端点发送。 如果出现 Message on High,则必须尽快处理。
有人知道怎么做吗???
<分区>
我需要具有 3 个端点的 WCF 服务
大部分消息将通过普通端点和低端点发送。 如果出现 Message on High,则必须尽快处理。
有人知道怎么做吗???
最佳答案
您应该看看 MSDN 杂志中 Michele Leroux Bustamante 的这个由两部分组成的精彩系列:
Building a WCF Router, Part 1和 Building a WCF Router, Part 2
您可能会对第 1 部分特别感兴趣:
Sometimes it is useful to introduce an intermediary or router service between a client and a target service to receive messages that flow between them and perform additional activities such as logging, priority routing, online/offline routing, load balancing, or to introduce a security boundary. When such an intermediate service is introduced, it becomes necessary to tweak some addressing and message filtering behaviors to accommodate.
[我强调了]
她还有相关的source code在她身上可用blog .
关于具有优先级的 WCF 端点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/183530/