通过 WCF 桥接 NSB
我正在尝试发布发送到 NSB 主机的 WCF 服务。我已经查看了 NSB 示例中的 WebServiceBridge 示例,但无法弄清楚如何在 WCF 对应项中使用 NServiceBus.WcfService 类。
我发现我可以让我的服务接口继承一个或多个 IWcfService < TRequest、TResponse>,但是由于服务类不能继承多个基类(WcfService),是否可以让一个服务实现服务于多种消息类型呢?
I am trying to publish a WCF service that sends to a NSB host. I have looked at the WebServiceBridge example in the NSB samples but cannot figure out how to use the NServiceBus.WcfService class in the WCF counterpart.
I have found out that I can have my service interface inherit one or more IWcfService < TRequest, TResponse >, but since the service class cannot inherit multiple base classes (WcfService), is it possible to have one service implementation serve several message types?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Frederik,
NServiceBus 的 WCF 桥(如 Web 服务桥)被设计为一种 WCF 服务 = 一种消息类型。因此,恐怕答案是否定的,尽管您始终可以编写自己的桥(基于基类中的代码)来支持多种消息类型。
希望有帮助。
——乌迪·达汉
Frederik,
The WCF Bridge for NServiceBus (like the Web Service Bridge) is designed to be one WCF service = one message type. So, I'm afraid that the answer is no, though you can always write your own bridge (based on the code in the base class) that will support more than one message type.
Hope that helps.
-- Udi Dahan