1

我有一个工作正常的双工 wcf 服务,但我知道我想使用 azure wcf-relay 的功能来连接客户端和服务。我让它与我所有的其他服务一起工作我唯一的问题是双工服务,因为它有一个回调,我不知道我应该做什么,如何使用 azure wcf 中继来实现它。

例子:

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

1 回答 1

0

根据Microsoft.ServiceBus 命名空间中提供的类,我们可以发现 Azure Relay WCF 中继只提供了 2 种类型的 ws-bindings。WSHttpRelayBinding 和 WSHttpRelayBinding。我找不到为 Azure WCF 中继实现 WSDualHttpBinding 类似功能的类。Azure WCF 中继目前可能不支持它。我建议您在Azure 反馈网站上提交反馈,用于发布想法或建议。

于 2017-08-23T07:46:48.303 回答