public async Task Release(RiakPbcSocket socket)
        {
            _resources.Dequeue(socket);

            if (_disposing)
            {
                return;
            }

            if (socket != null)
            {
                socket.Dispose();
            }
        }
예제 #2
0
 public void Dispose()
 {
     _socket.Dispose();
     Disconnect();
 }