简体   繁体   English

如何在Azure WCF中继中处理双工WCF

[英]How to handle duplex wcf in azure wcf relay

I have a duplex wcf service that works fine but know i want to use the ability of azure wcf-relay to connect the client and the service. 我有一个工作正常的双工wcf服务,但知道我想使用Azure wcf-relay的功能来连接客户端和服务。 I made it all work with all my other services my only problem is the duplex service since it has a callback and i am not sure what should i do, how to implement it with the azure wcf relay. 我使所有其他服务都可以使用,但我唯一的问题是双工服务,因为它具有回调,而且我不确定该怎么做,如何使用azure wcf中继实现它。

Example: 例:

 [ServiceContract(CallbackContract = typeof(IViewerManagerCallback), Name = "IViewerManager", Namespace = "http://samples.microsoft.com/ServiceModel/Relay/")]
public interface IViewerManager
{
    [OperationContract]        
    [FaultContract(typeof(OperationFaultData))]
    ViewLayout GetViewLayout(int viewId);

According to the classes provided in Microsoft.ServiceBus namespace , we could find that Azure Relay WCF relays only provide 2 types of ws- bindings. 根据Microsoft.ServiceBus命名空间中提供的类,我们可以发现Azure中继WCF中继仅提供2种类型的ws绑定。 WSHttpRelayBinding and WSHttpRelayBinding. WSHttpRelayBinding和WSHttpRelayBinding。 I can't find a class which implement the similar feature of WSDualHttpBinding for Azure WCF relays. 我找不到为Azure WCF中继实现WSDualHttpBinding的类似功能的类。 Maybe it is not support in Azure WCF relays currently. 也许当前不支持Azure WCF中继。 I suggest you submit a feedback on Azure feedback site which is used for posting ideas or suggestions. 我建议您在Azure反馈网站上提交反馈,该反馈用于发布想法或建议。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM