// 下达任务操作命令 public void DownloadingTaskAction(string dlTaskId, Action action) { DownloadTask dlTask = _DownloadManager.dlTaskDict.Where(o => o.Value.Id.Equals(dlTaskId)).FirstOrDefault().Value; if (dlTask != null) { dlTask.Handle(action); } }