Exemplo n.º 1
0
        static void BuildProxies()
        {
            StreamReader sr = new StreamReader("ProxyList.txt");

            proxyConnector = new ProxyConnector(new List <ProxyVM>());
            while (!sr.EndOfStream)
            {
                string   proxy  = sr.ReadLine();
                string[] ipport = proxy.Split(':');
                ProxyVM  vm     = new ProxyVM()
                {
                    ip   = ipport[0],
                    Port = int.Parse(ipport[1])
                };
                proxyConnector.AddProxy(vm);
            }
            sr.Close();
        }
Exemplo n.º 2
0
 public IActionResult Create(ProxyVM proxyInput)
 {
     return(Ok(proxyService.Create(proxyInput)));
 }
Exemplo n.º 3
0
 public MainWindow()
 {
     InitializeComponent();
     VM          = new ProxyVM();
     DataContext = VM;
 }