GuessResponseState() static private method

static private GuessResponseState ( BinaryResponse response, OperationState &state ) : bool
response Enyim.Caching.Memcached.Protocol.Binary.BinaryResponse
state OperationState
return bool
Beispiel #1
0
        protected override IOperationResult ProcessResponse(BinaryResponse response)
        {
            var r      = response.StatusCode == 0;
            var result = new BinaryOperationResult();

            if (this.locator != null &&
                !VBucketAwareOperationFactory.GuessResponseState(response, out this.state))
            {
                return(result.Fail("Process response failed"));
            }

            return(result.PassOrFail(r, "Processing response failed"));
        }
Beispiel #2
0
        protected override IOperationResult ProcessResponse(BinaryResponse response)
        {
            var r      = base.ProcessResponse(response);
            var result = new BinaryOperationResult();

            if (this.locator != null &&
                !VBucketAwareOperationFactory.GuessResponseState(response, out this.state))
            {
                return(result.Fail("Failed to process response"));
            }

            return(r);
        }