/// <summary> /// 回收 /// </summary> public void QtDispose() { try { distributer.Dispose(); // 先释放业务 Dispose(); // 在释放框架 logger.LogInformation("\r\n 应用程序停止,并成功回收GrantBaseServer.QtDispose"); } catch (Exception e) { logger.LogError(e, "GrantBaseServer.QtDispose.Error"); } // 让他等一下,把日志写完 System.Threading.Thread.Sleep(1000); Environment.Exit(0); }