/// <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()); }
/// <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(); }