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