示例#1
0
        protected virtual void Dispose(bool disposing)
        {
            if (Interlocked.CompareExchange(ref _disposed, 1, 0) != 0)
            {
                return;
            }

            if (!disposing)
            {
                return;
            }

            _channel.Dispose();
            _redisPipelinePool.Release(_channel);
        }
示例#2
0
 public void Dispose()
 {
     _channel.Dispose();
 }