Exemplo n.º 1
0
 public ChromiumSettings(string chromiumPath, IUserAgentProvider userAgentGenerator, IProxyStore proxyStore)
 {
     _chromiumPath      = chromiumPath;
     _userAgentProvider = userAgentGenerator;
     _proxyStore        = proxyStore;
     bool.TryParse(ConfigurationManager.AppSettings[nameof(Headless)], out Headless);
 }
Exemplo n.º 2
0
        public ProxyControl(IChromiumSettings chromiumSettings, IProxyStore proxyStore)
        {
            InitializeComponent();
            _chromiumSettings = chromiumSettings;
            _proxyStore       = proxyStore;

            if (_proxyStore != null)
            {
                lblProxyPath.Text = _proxyStore.GetPath();
                var proxyDataList = _proxyStore.GetProxies();
                tbProxies.Lines = proxyDataList.Select(x => x.ProxyString).ToArray();
            }
            tbProxies.DoubleClick += TbProxies_DoubleClick;
            btnIpWebShow.Click    += BtnIpWebShow_Click;
            btnSaveProxy.Click    += BtnSaveProxy_Click;
        }
Exemplo n.º 3
0
        public FingerprintControl(IChromiumSettings chromiumSettings, IProxyStore proxyStore, IBrowserProfilesControl browserProfilesControl)
        {
            InitializeComponent();

            var control = (Control)browserProfilesControl;

            control.Dock = DockStyle.Fill;
            pnlProfiles.Controls.Clear();
            pnlProfiles.Controls.Add(control);

            _chromiumSettings = chromiumSettings;
            _proxyStore       = proxyStore;

            btnWebShow.Click += BtnWebShow_Click;
            FillDeviceList(lbDevices);
            lbDevices.DoubleClick += LbDevices_DoubleClick;
            FillCountryList(cmbCountry);
            cmbCountry.SelectedIndexChanged += CmbCountry_SelectedIndexChanged;
            CmbCountry_SelectedIndexChanged(cmbCountry, null);
        }
Exemplo n.º 4
0
 public ProxyBindingResolver(IProxyStore proxyStore)
 {
     this.proxyStore = proxyStore ?? throw new ArgumentNullException(nameof(proxyStore));
 }