Esempio n. 1
0
 public void Download(COSXMLDownloadTask downloader)
 {
     downloader.InitCosXmlServer(cosXml);
     downloader.SetSliceSize(transferConfig.SliceSizeForDownload);
     downloader.SetDivisionSize(transferConfig.DivisionForDownload);
     downloader.Download();
 }
Esempio n. 2
0
        /// <summary>
        /// 异步下载对象
        /// </summary>
        /// <param name="downloader"></param>
        /// <returns></returns>
        public Task <COSXMLDownloadTask.DownloadTaskResult> DownloadAsync(COSXMLDownloadTask downloader)
        {
            var task = downloader.AsyncTask <COSXMLDownloadTask.DownloadTaskResult>();

            Download(downloader);
            return(task);
        }
 public void Download(COSXMLDownloadTask downloader)
 {
     downloader.InitCosXmlServer(cosXml);
     downloader.Download();
 }