Exemple #1
0
        /// <summary>
        /// 创建包裹下载器
        /// </summary>
        public override PackageDownloaderOperation CreatePackageDownloader(int downloadingMaxNumber, int failedTryAgain)
        {
            List <BundleInfo> downloadList = new List <BundleInfo>();
            var operation = new PackageDownloaderOperation(downloadList, downloadingMaxNumber, failedTryAgain);

            return(operation);
        }
Exemple #2
0
 /// <summary>
 /// 创建包裹下载器
 /// </summary>
 public override PackageDownloaderOperation CreatePackageDownloader(int downloadingMaxNumber, int failedTryAgain)
 {
     if (Status == EOperationStatus.Succeed)
     {
         List <BundleInfo> downloadList = GetDownloadList();
         var operation = new PackageDownloaderOperation(downloadList, downloadingMaxNumber, failedTryAgain);
         return(operation);
     }
     else
     {
         YooLogger.Error($"{nameof(UpdatePackageOperation)} status is failed !");
         var operation = new PackageDownloaderOperation(null, downloadingMaxNumber, failedTryAgain);
         return(operation);
     }
 }