Esempio n. 1
0
 /// <summary>
 /// 开始任务
 /// </summary>
 public bool Start(DelegateContainer delegates)
 {
     if (BasePlugin == null)
     {
         this.Status = DownloadStatus.出现错误;
         throw new Exception("Plugin Not Found");
     }
     resourceDownloader           = BasePlugin.CreateDownloader();
     resourceDownloader.Info      = this;
     resourceDownloader.delegates = delegates;
     this.PartialFinished         = false;
     this.PartialFinishedDetail   = "";
     return(resourceDownloader.Download());
 }
Esempio n. 2
0
        /// <summary>
        /// 分析任務
        /// </summary>
        public bool Analysis()
        {
            if (BasePlugin == null)
            {
                Status = DownloadStatus.Error;
                throw new Exception("Plugin Not Found");
            }
            if (_downloader == null)
            {
                _downloader          = BasePlugin.CreateDownloader();
                _downloader.TaskInfo = this;
            }

            return(_downloader.Analysis());
        }
Esempio n. 3
0
        /// <summary>
        /// 開始任務
        /// </summary>
        public bool Start()
        {
            if (BasePlugin == null)
            {
                Status = DownloadStatus.Error;
                throw new Exception("Plugin Not Found");
            }
            if (_downloader == null)
            {
                _downloader          = BasePlugin.CreateDownloader();
                _downloader.TaskInfo = this;
            }
            //resourceDownloader = BasePlugin.CreateDownloader();
            //resourceDownloader.taskInfo = this;


            return(_downloader.Download());
        }