public Dictionary<PartsPage, IEnumerable<string>> Run(string link)
        {
            Dictionary<PartsPage, IEnumerable<string>> result = null;
              IHttpWeb webCl = new WebCl();
              var url = link;
              try
              {
            ParserPage parser = new SimpleParserPage
              (url, new List<IPrepareContent> {
                    new AvitoLoadImageDeferentSize(webCl,pathImages2, mySqlDB, ftpUsername, ftpPassword, imageParsedCountHelper)
                    {
                    }
                           }, webCl
              );
            parser.LoadPage(url);
            parser.RunActions();
            //MySqlDB.InsertItemResource(MySqlDB.ResourceID(), link);
            // ProxyCollectionSingl.Instance.Dispose();
            result = parser.ResultsParsing;
              }
              catch (Exception)
              {

              }
              return result;
        }
 public IEnumerable<string> LoadLinks(string linkSection)
 {
     IHttpWeb webCl = new WebCl();
       string url = linkSection;
       mySqlDB.CountAd = 0;
       ParserPage parser = new SimpleParserPage
     (url, new List<IPrepareContent> {
             new AvitoLoadLinksBeforeRepeat(webCl,8,x=>mySqlDB.IsNewAdAvito(x))
                    }, webCl
     );
       parser.LoadPage(url);
       parser.RunActions();
       var result = parser.ResultsParsing;
       var links = result[PartsPage.LinkOnAd];
       return links;
 }
 public Dictionary<PartsPage, IEnumerable<string>> Run(string link)
 {
     IHttpWeb webCl = new WebCl();
       var url = link;
       ParserPage parser = new SimpleParserPage
     (url, new List<IPrepareContent>
             {
             new AvitoPhones(webCl),
             new AvitoCity(),
             new AvitoSeller(),
             new AvitoTitle(),
             new AvitoCost(),
             new AvitoBodyAd(),
             new AvitoSubCategory(),
             new AvitoIdAd()
             }, webCl
     );
       parser.LoadPage(url);
       parser.RunActions();
       //     ProxyCollectionSingl.Instance.Dispose();
       var result = parser.ResultsParsing;
       return result;
 }