public void AddTask(DownLoaderTask task, string name) { if (HasTask(task.URL)) { return; } tasks.Add(task.URL, ResourceLoadTask.Get(task, name)); }
/// <summary> /// Adds the task. /// only Download. /// </summary> /// <param name="url">URL.</param> /// <param name="version">Version.</param> public void AddTask(string url, int version) { if (HasTask(url)) { return; } tasks.Add(url, ResourceLoadTask.Get(new DownLoaderTask(url, version), true)); }