示例#1
0
        private bool DownloadBdiFile(BdiConfig bdiConfig)
        {
            bool statusOk = true;

            //try
            //{    // Donwload de arquivo
            //    MobralWorker.DownloadFile(bdiConfig.SitePathAndFile, bdiConfig.ZipFileName, bdiConfig.DownloadPath);
            //}
            //catch
            //{
            //    //log4Net.erro
            //    statusOk = false;
            //}

            return(statusOk);
        }
示例#2
0
        private bool DecompressBdiZip(BdiConfig bdiConfig)
        {
            bool statusOk = true;

            //try
            //{
            //    // Unzip File
            //    MobralWorker.Decompress(bdiConfig.DownloadPath, bdiConfig.ZipFileName, bdiConfig.BdiFileName);
            //}
            //catch
            //{
            //    statusOk = false;
            //}

            return(statusOk);
        }