Пример #1
0
        public bool GetLinks(string vsPath, string vsExten)
        {
            cFile oFile = new cFile(vsPath);

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

                sFileList = oFile.AllFileListWExten(vsPath, vsExten);
                Parallel.For(0, sFileList.Count, x =>
                {
                    string sFilePath = sFileList[x];
                    LoadLinksFromFile(sFilePath);
                    _iFilesExtracted = _iFilesExtracted + 1;
                });
                return(true);
            }
            catch (Exception ex)
            {
                oFile.WriteLog(ex.Message, "GetLinksWExtenError.log");
                throw ex;
            }
        }