/// <summary> /// 停止任务 /// </summary> public void Stop() { if (_th != null && _th.IsAlive) { _mission.Abort(); if (_autoEvent != null) { _autoEvent.Set(); } _th.Join(5000); } }