protected override void Dispose(bool disposing) { if (_logCache != null) { if (disposing) { _logCache.Close(); } _logCache = null; } base.Dispose(disposing); }
protected virtual void Dispose(bool disposing) { if (!_disposed) { _disposed = true; if (disposing) { // 关闭缓存池。 _productCacheReceive.Close(); _productCacheSending.Close(); } } }