Example #1
0
 public override bool Equals(object obj)
 {
     if (obj is DownloadHistory history)
     {
         return(TaskKey.Equals(history.TaskKey));
     }
     else
     {
         return(base.Equals(obj));
     }
 }
 private static TaskMainDAO GetExistingTaskDAO(TaskKey taskKey)
 {
     TaskMainDAO existedTaskMainDAO = null;
     taskMainDaoCollection.TryGetValue(taskKey, out existedTaskMainDAO);
     return existedTaskMainDAO;
 }
 private static ITask GetExistingTask(TaskKey taskKey)
 {
     ITask existedTaskMain = null;
     taskMainCollection.TryGetValue(taskKey, out existedTaskMain);
     return existedTaskMain;
 }
Example #4
0
 public override int GetHashCode() => TaskKey.GetHashCode();