Ejemplo n.º 1
0
 public void Dispose()
 {
     _connection?.Close();
     _connection?.Dispose();
     _redisLockFactory?.Dispose();
     _connection       = null;
     _redisLockFactory = null;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Release all resources associated with this object
        /// </summary>
        public void Dispose()
        {
            //dispose ConnectionMultiplexer
            _connection?.Dispose();

            //dispose RedisLockFactory
            _redisLockFactory?.Dispose();
        }
Ejemplo n.º 3
0
        public void Dispose()
        {
            if (_connection != null)
            {
                _connection.Dispose();
            }

            //dispose RedisLockFactory
            if (_redisLockFactory != null)
            {
                _redisLockFactory.Dispose();
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Release all resources associated with this object
        /// </summary>
        public void Dispose()
        {
            //dispose ConnectionMultiplexer
            if (_connection != null)
            {
                _connection.Dispose();
            }

            //dispose RedisLockFactory
            if (_redisLockFactory != null)
            {
                _redisLockFactory.Dispose();
            }
        }