private void HandleResponseWithToken(RESPObject response)
 {
     _current.CommandOperation.HandleResponse(response);
     if (_current.CommandOperation.IsCompleted)
     {
         if (!_current.IsCancelled)
         {
             _connectionCancellation.Token.ThrowIfCancellationRequested();
             _current.SetCompleted();
         }
         _current = null;
     }
 }
        private void HandleResponseWithToken(RESPObject response)
        {
            Contract.Assert(_current.SubscriptionOperation != null, "A token without subscription reached the subscriber connection response handler.");

            if (!_current.SubscriptionOperation.IsCompleted)
            {
                _current.SubscriptionOperation.HandleResponse(response);
            }

            if (_current.SubscriptionOperation.IsCompleted)
            {
                _current.SetCompleted();
                _current = null;
            }
        }