usedefaultwebproxy在WCF的目的是什么? [英] What is the purpose of usedefaultwebproxy in WCF?

查看:1220
本文介绍了usedefaultwebproxy在WCF的目的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是调查代理初始化的缓慢(PrivateInvoke法),发现很多人都建议我们设定usedefaultwebproxy为false。但在此之前会提前与修复,我想更多地了解它是什么,它​​做什么?它如何影响我的code等其他领域。

I was investigating the slowness of proxy initialization (PrivateInvoke method) and found that many people have recommended that we set the usedefaultwebproxy to false. But before going ahead with the fix I'd like to know more about what it is and what it does? How can it impact other areas of my code etc.

推荐答案

是什么是<一个href="http://msdn.microsoft.com/en-us/library/system.servicemodel.basichttpbinding.usedefaultwebproxy.aspx" MSDN上相对=nofollow> - 它只是控制是否应该发现从系统配置代理服务器,或者你是否会指定。如果我们假设你打算给它的值相同,无论如何,那么只能使用似乎是:以避免额外的查找(这可能需要一个未知的时间,也许?)。但是,它可能是你想完全绕过代理服务器而直接去找。我当然记得(在当天返回),使用proxycfg用法和的netsh禁用对于本地地址的代理服务器,但这是(IIRC),更多的是传递Windows凭据到本地服务器。

The "what" is on MSDN - it just controls whether it should find the proxy from system configuration, or whether you will specify it. If we assume that you're going to give it the same value anyway, then the only use would seem to be: to avoid an extra lookup (which could take an unknown time, maybe?). However, it might be that you want to bypass the proxy completely and go direct. I certainly remember (back in the day) using proxycfg and netsh to disable the proxy for local addresses, but that was (IIRC) more to do with passing windows credentials to a local server.

这篇关于usedefaultwebproxy在WCF的目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆