开发者

WCF Broadcast through a proxy

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜