private void ExecuteProgram(string file)
 {
     _wbh = new Util.WebHelpers(_settings);
     using (System.IO.StreamReader sr = new System.IO.StreamReader(file))
     {
         string line;
         while ((line = sr.ReadLine()) != null)
         {
             _site_info.Pages.Add(ProcessUrl(line.Trim()));
         }
     }
     _wbh.Dispose();
 }
Esempio n. 2
0
 private void ExecuteProgram(string file)
 {
     _wbh = new Util.WebHelpers(_settings);
     using (System.IO.StreamReader sr = new System.IO.StreamReader(file))
     {
         string line;
         while ((line = sr.ReadLine()) != null)
         {
             _site_info.Pages.Add(ProcessUrl(line.Trim()));
         }
     }
     _wbh.Dispose();
 }
        private void ExecuteProgram(string startingUrl, Util.AppSettings settings)
        {
            _settings     = settings;
            _wbh          = new Util.WebHelpers(settings);
            _starting_url = startingUrl;

            if (_settings.Base_url == null)
            {
                _settings.Base_url = startingUrl;
            }
            _site_info.Starting_URL = _starting_url;
            processUrl(_starting_url);
            _wbh.Dispose();
        }