Skip to content
Browse files

NCBC-96: Changes to support ResponseHelper API change in Enyim

Updated calls to reflect new method signature in VBucketAwareOperationFactory.cs

Change-Id: Idbfd6b8a783ca3af278fd440a8514a1e093d4732
Reviewed-on: http://review.couchbase.org/19833
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: John C. Zablocki <john@couchbase.com>
  • Loading branch information...
1 parent 2e6324b commit d4e5ba175ff75c23108f0ffc843d21aaba648f69 @johnzablocki johnzablocki committed with John C. Zablocki Aug 18, 2012
Showing with 6 additions and 6 deletions.
  1. +1 −1 src/Couchbase/Operations/ObserveOperation.cs
  2. +5 −5 src/Couchbase/VBucketAwareOperationFactory.cs
View
2 src/Couchbase/Operations/ObserveOperation.cs
@@ -49,7 +49,7 @@ protected override IOperationResult ReadResponse(PooledSocket socket)
this.StatusCode = response.StatusCode;
- result.PassOrFail(retval, ResultHelper.ProcessResponseData("Failed: ", response.Data));
+ result.PassOrFail(retval, ResultHelper.ProcessResponseData(response.Data, "Failed: "));
return result;
}
View
10 src/Couchbase/VBucketAwareOperationFactory.cs
@@ -127,7 +127,7 @@ protected override IOperationResult ProcessResponse(BinaryResponse response)
if (!GuessResponseState(response, out this.state))
{
- var message = ResultHelper.ProcessResponseData("Failed to process response", response.Data);
+ var message = ResultHelper.ProcessResponseData(response.Data, "Failed to process response");
return result.Fail(message);
}
@@ -173,7 +173,7 @@ protected override IOperationResult ProcessResponse(BinaryResponse response)
if (!GuessResponseState(response, out this.state))
{
- var message = ResultHelper.ProcessResponseData("Failed to process response", response.Data);
+ var message = ResultHelper.ProcessResponseData(response.Data, "Failed to process response");
return result.Fail(message);
}
@@ -219,7 +219,7 @@ protected override IOperationResult ProcessResponse(BinaryResponse response)
if (!GuessResponseState(response, out this.state))
{
- var message = ResultHelper.ProcessResponseData("Failed to process response", response.Data);
+ var message = ResultHelper.ProcessResponseData(response.Data, "Failed to process response");
return result.Fail(message);
}
return result.Pass();
@@ -286,7 +286,7 @@ protected override IOperationResult ProcessResponse(BinaryResponse response)
if (!GuessResponseState(response, out this.state))
{
- var message = ResultHelper.ProcessResponseData("Failed to process response", response.Data);
+ var message = ResultHelper.ProcessResponseData(response.Data, "Failed to process response");
return result.Fail(message);
}
@@ -333,7 +333,7 @@ protected override IOperationResult ProcessResponse(BinaryResponse response)
if (!GuessResponseState(response, out this.state))
{
- var message = ResultHelper.ProcessResponseData("Failed to process response", response.Data);
+ var message = ResultHelper.ProcessResponseData(response.Data, "Failed to process response");
return result.Fail(message);
}

0 comments on commit d4e5ba1

Please sign in to comment.
Something went wrong with that request. Please try again.