예제 #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());
 }
예제 #2
0
파일: TaskInfo.cs 프로젝트: kwedr/acdown
		/// <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();
		}