예제 #1
0
 public void AddTask(DownLoaderTask task, string name)
 {
     if (HasTask(task.URL))
     {
         return;
     }
     tasks.Add(task.URL, ResourceLoadTask.Get(task, name));
 }
예제 #2
0
 /// <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));
 }