禁用WCF數據服務客戶端以使用系統代理

[英]Disable WCF Data Service Client to use system proxy


I am using wcf data service as client like this:

我使用wcf數據服務作為客戶端,如下所示:

var context = new MyDerivedDataServiceContext(service_uri);
var res = context.Execute<bool>(service_uri, "GET", true).First();

but my application always uses default system proxy while executing. How can I disable using system proxy? (I am using OData version 5.6 on windows 8.1)

但我的應用程序總是在執行時使用默認系統代理。如何禁用系統代理? (我在Windows 8.1上使用OData 5.6版)

Edit:

I have checked this answer but this does not work for wcf data service. I encountered such a problem when a user using Psiphon3 force shutdown or quit the proxy application, and the proxy IP/Port remains on system.

我已經檢查了這個答案但這對wcf數據服務不起作用。當用戶使用Psiphon3強制關閉或退出代理應用程序,並且代理IP /端口仍在系統上時,我遇到了這樣的問題。

The problem is how my application does not use the system proxy and connect directly?

問題是我的應用程序如何不使用系統代理並直接連接?

Regards.

1 个解决方案

#1


0  

By my understanding, You need to set your system proxy to bypass those addresses.

根據我的理解,您需要設置系統代理以繞過這些地址。

Control panel -> Internet options-> Connections-> LAN Settings -> Advanced

控制面板 - > Internet選項 - >連接 - >局域網設置 - >高級

Then you can set the bypass address.

然后您可以設置旁路地址。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2015/06/07/bfcb99a37f4eb6cadfe42dc40a012d1c.html



 
  © 2014-2022 ITdaan.com 联系我们: