usedefaultwebproxy在WCF的目的是什么?目的、usedefaultwebproxy、WCF

由网友(世界与我无关)分享简介:我是调查代理初始化的缓慢(PrivateInvoke法),发现很多人都建议我们设定usedefaultwebproxy为false。但在此之前会提前与修复,我想更多地了解它是什么,它​​做什么?它如何影响我的code等其他领域。I was investigating the slowness of proxy ini...

我是调查代理初始化的缓慢(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.

推荐答案

是什么是 - 它只是控制是否是应该发现从系统配置代理服务器,或者你是否会指定。如果我们假设你打算给它的值相同,无论如何,那么只能使用似乎是:以避免额外的查找(这可能需要一个未知的时间,也许?)。但是,它可能是你想完全绕过代理服务器而直接去找。我当然记得(在当天返回),使用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.

阅读全文

相关推荐

最新文章