示例#1
0
        protected override void Dispose(bool disposing)
        {
            if (_logCache != null)
            {
                if (disposing)
                {
                    _logCache.Close();
                }

                _logCache = null;
            }

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

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