开发者

WCF Broadcast through a proxy

开发者 https://www.devze.com 2023-04-08 06:56 出处:网络
I am u开发者_如何学Pythonsing WCF Broadcast, WCF client directly connects to WCF Server and server broadcasts data to client. I don\'t know WCF connection have a proxy support or not? WCF Client will

I am u开发者_如何学Pythonsing WCF Broadcast, WCF client directly connects to WCF Server and server broadcasts data to client. I don't know WCF connection have a proxy support or not? WCF Client will connect to WCF Server through a proxy, and WCF Server will broadcast data to WCF Client through this proxy.

If yes, please help me how to deploy. Thanks.


You set the proxy settings in your bindings like so:

<defaultProxy useDefaultCredentials="true"> 
    <proxy bypassonlocal="True" proxyaddress="http://..." /> 
</defaultProxy>
  • UseDefaultWebProxy - if set to true, will use the global value HttpWebRequest.DefaultProxy as your proxy.
  • ProxyAddress - to specify your proxy directly, you will need to set UseDefaultWebProxy to false as well
  • BypassProxyOnLocal - lets local connections bypass the proxy
0

精彩评论

暂无评论...
验证码 换一张
取 消