예제 #1
0
        public void Dispose()
        {
            _io.Dispose();

            if (_redisSocket != null)
            {
                _redisSocket.Dispose();
            }
        }
        public void Dispose()
        {
            if (_asyncConnector.IsValueCreated)
            {
                _asyncConnector.Value.Dispose();
            }

            _io.Dispose();
            _redisSocket?.Dispose();
        }
예제 #3
0
        public void Dispose()
        {
            if (_asyncConnector.IsValueCreated)
            {
                _asyncConnector.Value.Dispose();
            }

            _io.Dispose();

            if (_redisSocket != null)
            {
                _redisSocket.Dispose();
            }
        }