如何为每个GeckoFX实例设置不同的代理? [英] How to set different proxies for each GeckoFX instance?

查看:106
本文介绍了如何为每个GeckoFX实例设置不同的代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要设置代理,我们需要更改GeckoPreferences.User [],所有实例都一样,例如:

To set a proxy we need to change the GeckoPreferences.User[""] and this is the same for all instances, for exemple:

GeckoPreferences.User["network.proxy.http"] = "x.com";

是否可以为每个geckoFX实例设置不同的代理?

Is it possible to set a different proxy for each geckoFX instance?

如果不可能,是否有任何解决方法?

If this is not possible, are there any kinds of workarounds?

推荐答案

所有GeckoFX浏览器控件都在运行在同一应用程序中共享首选项(以及缓存,Cookie等)。要使用单独的首选项运行两个GeckoFX Web浏览器控件,唯一的选择是使它们在具有两个不同配置文件目录的两个不同应用程序中运行。

All GeckoFX browser controls running in the same application shares preferences (and cache, cookies etc). To run two GeckoFX web browser controls with separate preferences, the only options is to have them running in two different applications with two different profile directories.

在此处阅读如何设置配置文件目录: https://stackoverflow.com / a / 20614986/2440

Read here how to set profile directory: https://stackoverflow.com/a/20614986/2440

这篇关于如何为每个GeckoFX实例设置不同的代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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