Beispiel #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();
        }
Beispiel #3
0
 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.
     }
 }
Beispiel #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();
            }
        }
Beispiel #5
0
 protected override void ExecuteAbort()
 {
     _responseSequence.Abort();
 }
Beispiel #6
0
 protected override void ExecuteAbort()
 {
     _attachSequence.Abort();
     DetachEntity();
 }
Beispiel #7
0
 protected override void ExecuteAbort()
 {
     _testSequence.Abort();
 }
Beispiel #8
0
 /// <summary>
 /// 终止Task,且会从Context移除掉。
 /// </summary>
 /// <param name="task"></param>
 public void AbortTask(ITask task)
 {
     task.Abort();
     this.RemoveTaskFromContext(task);
 }
Beispiel #9
0
 protected override void ExecuteAbort()
 {
     _animSequence.Abort();
     StopAnim();
 }
Beispiel #10
0
 protected override void ExecuteAbort()
 {
     _dialogueSequence.Abort();
 }
Beispiel #11
0
 protected override void ExecuteAbort()
 {
     _testSequence.Abort();
     UI.Dialogues.Stop();
 }
Beispiel #12
0
 protected override void ExecuteAbort()
 {
     _currentTask.DidEnd -= TaskOnDidEnd;
     _currentTask.Abort();
 }
Beispiel #13
0
 protected override void ExecuteAbort()
 {
     _scenarioTask.DidEnd -= ScenarioTaskOnDidEnd;
     _scenarioTask.Abort();
 }
Beispiel #14
0
 private void AbortTask()
 {
     _task.DidEnd -= TaskOnDidEnd;
     _task.Abort();
 }