protected virtual void Dispose(bool _disposing) { if (mDisposed) { return; } mDisposed = true; if (IsCOrD()) { return; } mReCallDelgate = null; mMsgHandlerList.Clear(); DisConnect(); mState = TcpState.Disposed; }
override protected void DisposeNoGcCode() { mAssembType.Clear(); mMapType.Clear(); mAssembly = null; if (mApp != null) { AppDomain.Unload(mApp); } mApp = null; // DLog.LogError( "Assembly 无法直接卸载.如有卸载需求请使用IL模式."); }