static void Main(string[] args) { using (var biz = new ProxyListBiz()) { GetListProxy(); } }
public static void GetListProxy() { using (var biz = new ProxyListBiz()) { biz.URLRequest = ConfigurationManager.AppSettings["URLProxy"]; biz.HTMLPartenReg = new Regex(@"<tr><td>\w+.*"); biz.HTMLPartenSubReg = new Regex(@"<tr><td>|</td><td>|</td></tr>"); Base.Execute(biz.GetListProxy()); } }
private static List<ProxyListDto> getListProxy() { using (var biz = new ProxyListBiz()) { biz.URLRequest = ConfigurationManager.AppSettings["URLProxy"]; biz.HTMLPartenReg = new Regex(@"<tr><td>\w+.*"); biz.HTMLPartenSubReg = new Regex(@"<tr><td>|</td><td>|</td></tr>"); return biz.GetListProxy(); } }