Bridge NSB over WCF

て烟熏妆下的殇ゞ 提交于 2019-12-22 10:55:32

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/1375672/bridge-nsb-over-wcf

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!