Esempio n. 1
0
 public override void BeginInvoke(TaskCompleteCallback callback)
 {
     base.BeginInvoke(callback);
     for (int i = 0; i < base.Tasks.Count; i++)
     {
         AsyncTask asyncTask = base.Tasks[i];
         asyncTask.BeginInvoke(new TaskCompleteCallback(this.CompleteChildTask));
     }
 }
 private void BeginInvokeNextTask()
 {
     this.currentTask++;
     if (this.currentTask < base.Tasks.Count && !base.Aborted)
     {
         AsyncTask asyncTask = base.Tasks[this.currentTask];
         asyncTask.BeginInvoke(new TaskCompleteCallback(this.CompleteChildTask));
         return;
     }
     base.Complete();
 }