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