public async Task Release(RiakPbcSocket socket) { _resources.Dequeue(socket); if (_disposing) { return; } if (socket != null) { socket.Dispose(); } }
public void Dispose() { _socket.Dispose(); Disconnect(); }
public async Task Release(RiakPbcSocket socket) { _resources.Dequeue(socket); if (_disposing) { return; } if (socket != null) { socket.Dispose(); } }
public void Dispose() { _socket.Dispose(); Disconnect(); }