Exemple #1
0
        protected override void ExecuteAbort()
        {
            _task.DidEnd -= TaskOnDidEnd;
            _task.Abort();

            AbortActivities();
        }
        public override void Dispose()
        {
            if (loaderTask != null)
            {
                loaderTask.Abort();
            }
            loaderTask = null;

            base.Dispose();
        }
 protected override void AbortInternal()
 {
     if (unpackTask != null)
     {
         unpackTask.Abort();
         statusMsg = unpackTask.StatusMsg();
     }
     if (statusMsg.Length == 0)
     {
         statusMsg = "UnpackerTask aborted."; // add descriptive msg if none was given by unpackTask.
     }
 }
Exemple #4
0
        /// <summary>
        /// aborts the thread running the task in a blocking way
        /// </summary>
        protected override void AbortInternal()
        {
            if (task != null)
            {
                task.Abort();
            }

            if (thread != null)
            {
                thread.Abort();
                thread = null;
            }

            if (thread != null && !task.IsFinished())
            {
                thread.Join();
            }
        }
Exemple #5
0
 protected override void ExecuteAbort()
 {
     _responseSequence.Abort();
 }
Exemple #6
0
 protected override void ExecuteAbort()
 {
     _attachSequence.Abort();
     DetachEntity();
 }
 protected override void ExecuteAbort()
 {
     _testSequence.Abort();
 }
Exemple #8
0
 /// <summary>
 /// 终止Task,且会从Context移除掉。
 /// </summary>
 /// <param name="task"></param>
 public void AbortTask(ITask task)
 {
     task.Abort();
     this.RemoveTaskFromContext(task);
 }
Exemple #9
0
 protected override void ExecuteAbort()
 {
     _animSequence.Abort();
     StopAnim();
 }
Exemple #10
0
 protected override void ExecuteAbort()
 {
     _dialogueSequence.Abort();
 }
Exemple #11
0
 protected override void ExecuteAbort()
 {
     _testSequence.Abort();
     UI.Dialogues.Stop();
 }
Exemple #12
0
 protected override void ExecuteAbort()
 {
     _currentTask.DidEnd -= TaskOnDidEnd;
     _currentTask.Abort();
 }
 protected override void ExecuteAbort()
 {
     _scenarioTask.DidEnd -= ScenarioTaskOnDidEnd;
     _scenarioTask.Abort();
 }
 private void AbortTask()
 {
     _task.DidEnd -= TaskOnDidEnd;
     _task.Abort();
 }