我很难尝试将我的代理设置与WUApiLib.WebProxy
/一起使用IUpdateSession.WebProxy
。
我尝试了以下但没有运气:
IUpdateSession session = new UpdateSession();
session.WebProxy.AutoDetect(); //Error: Method, Delegate or Event is expected.
然后我尝试了以下方法:
private delegate IUpdateSession D();
IUpdateSession session = new UpdateSession();
D proxy = new D(session.WebProxy.AutoDetect()); //Same error...
最后尝试简单地添加地址:
IUpdateSession session = new UpdateSession();
session.WebProxy.Address = "http://198.13.44.1:8080"; //This seems to run, but i'm not sure how i can tell for certain if its working good.
是否可以将一个实例传递System.Net.WebProxy
给在 of 中WebProxy
找到IUpdateSession
的WUApiLib
?