public bool GetLinks(string vsPath)
        {
            cFile oFile   = new cFile(vsPath);
            cFile oLogger = new cFile("GetLinksErrorFilePaths.txt");

            List <String> sUrlList = new List <string>();

            try
            {
                sFileList = oFile.AllFileList(vsPath);
                Parallel.For(0, sFileList.Count, x =>
                {
                    string sFilePath = sFileList[x];
                    LoadLinksFromFile(sFilePath);
                    _iFilesExtracted = _iFilesExtracted + 1;
                });

                //throw new NotImplementedException();
                return(true);
            }
            catch (Exception ex)
            {
                oFile.WriteLog(ex.Message, "GetLinksError.log");
                throw ex;
            }
        }
Beispiel #2
0
 public bool GetLinks(string vsPath)
 {
     try
     {
         List <String> sUrlList  = new List <string>();
         cFile         oFile     = new cFile(vsPath);
         List <string> sFileList = oFile.AllFileList(vsPath);
         for (int iCnt = 0; iCnt < sFileList.Count(); iCnt++)
         {
             string sFilePath = sFileList[iCnt];
             LoadLinksFromFile(sFilePath);
             iFilesExtracted = iFilesExtracted + 1;
         }
         //throw new NotImplementedException();
         return(true);
     }
     catch
     {
         throw; //ex;
     }
 }
        public bool GetLink(string vsPath)
        {
            cFile oFile = new cFile(vsPath);

            List <String> sUrlList = new List <string>();

            try
            {
                sFileList = oFile.AllFileList(vsPath);
                Parallel.For(0, sFileList.Count, x =>
                {
                    string sFilePath = sFileList[x];
                    LoadToFile(sFilePath);
                    _iFilesExtracted = _iFilesExtracted + 1;
                });

                return(true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }