简体   繁体   English

如何在Dropnet中使用代理

[英]How to use a proxy in dropnet

I tried to create a tool with dropnet. 我试图用dropnet创建一个工具。 Now there's a big Problem: we have a Proxy in the Office 现在有个大问题:办公室里有一个代理

How can i use this Proxy automaticaly for every Connection? 如何为每个连接自动使用此代理?

Thx damon Thx damon

What platform are you using DropNet on? 您在哪个平台上使用DropNet? At the moment a proxy is not supported on Windows Phone or Windows Store Apps. 目前,Windows Phone或Windows Store Apps不支持代理。

But in full .NET the DropNetClient instance has a property called Proxy which is a IWebProxy interface. 但是在完整的.NET中,DropNetClient实例具有一个称为Proxy的属性,该属性是IWebProxy接口。 https://github.com/DropNet/DropNet/blob/master/DropNet/Client/Client.cs#L65 https://github.com/DropNet/DropNet/blob/master/DropNet/Client/Client.cs#L65

I'm not 100% sure how it works as I didn't implement that feature but looking at the code it might need some work to get it to work as the property seems to only be used by the Constructor and you can't set it before calling the constructor which is strange. 我不确定100%的功能,因为我没有实现该功能,但是查看代码可能需要一些工作才能使其正常工作,因为该属性似乎仅由构造方法使用,并且您无法设置它在调用构造函数之前很奇怪。

If you get it working let me know and I'll update the documentation. 如果您能正常使用,请告诉我,我将更新文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM