看起来possible可以通过client.stop()
取消待处理的请求,但是当我们使用apollo client hooks
而没有client
时,文档没有向我们显示解决方案。 / p>
如何使用apollo客户端挂钩停止待处理的请求?
答案 0 :(得分:2)
答案 1 :(得分:1)
您可以在功能组件中使用 <system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="AmadeusWebServicesBinding" />
</basicHttpBinding>
<customBinding>
<binding name="AmadeusWebServices_AmadeusWebServicesPort">
<textMessageEncoding messageVersion="Soap11WSAddressing10" />
<httpTransport />
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="https://nodeD1.test.webservices.amadeus.com/WSAPHERE"
binding="customBinding" bindingConfiguration="AmadeusWebServices_AmadeusWebServicesPort"
contract="Amadeus_API.AmadeusWebServicesPT" name="AmadeusWebServicesPort" />
</client>
来获取客户端实例the paper