protected override void Dispose(bool disposing)
        {
            if (_logCache != null)
            {
                if (disposing)
                {
                    _logCache.Close();
                }

                _logCache = null;
            }

            base.Dispose(disposing);
        }
Example #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                _disposed = true;

                if (disposing)
                {
                    // 关闭缓存池。
                    _productCacheReceive.Close();
                    _productCacheSending.Close();
                }
            }
        }