Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(803)

Issue 6344047: Refactor ETag logic into a Decorator.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by askyles
Modified:
11 years, 10 months ago
Reviewers:
mlinder
CC:
google-api-dotnet-client-codereview_googlegroups.com
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : Minor updates. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -69 lines) Patch
A Src/GoogleApis.Tests/Apis/Requests/RequestDecorators/EtagRequestDecoratorTests.cs View 1 chunk +28 lines, -0 lines 1 comment Download
M Src/GoogleApis.Tests/Apis/Requests/RequestTest.cs View 1 chunk +0 lines, -14 lines 0 comments Download
M Src/GoogleApis.Tests/GoogleApis.Tests.csproj View 1 chunk +1 line, -0 lines 0 comments Download
M Src/GoogleApis/Apis/Requests/Request.cs View 4 chunks +14 lines, -55 lines 0 comments Download
A Src/GoogleApis/Apis/Requests/RequestDecorators/EtagRequestDecorator.cs View 1 chunk +92 lines, -0 lines 3 comments Download
M Src/GoogleApis/GoogleApis.csproj View 1 chunk +1 line, -0 lines 0 comments Download
M Src/GoogleApis/GoogleApis.Silverlight.csproj View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3
askyles
11 years, 10 months ago (2012-06-27 20:01:52 UTC) #1
askyles
11 years, 10 months ago (2012-06-27 20:02:32 UTC) #2
mlinder
11 years, 10 months ago (2012-06-27 20:21:47 UTC) #3
http://codereview.appspot.com/6344047/diff/3001/Src/GoogleApis.Tests/Apis/Req...
File
Src/GoogleApis.Tests/Apis/Requests/RequestDecorators/EtagRequestDecoratorTests.cs
(right):

http://codereview.appspot.com/6344047/diff/3001/Src/GoogleApis.Tests/Apis/Req...
Src/GoogleApis.Tests/Apis/Requests/RequestDecorators/EtagRequestDecoratorTests.cs:12:
public class EtagRequestDecoratorTests
EtagRequest* or ETagRequest*? I'd go with the second one in order to remain
consistent.

http://codereview.appspot.com/6344047/diff/3001/Src/GoogleApis/Apis/Requests/...
File Src/GoogleApis/Apis/Requests/RequestDecorators/EtagRequestDecorator.cs
(right):

http://codereview.appspot.com/6344047/diff/3001/Src/GoogleApis/Apis/Requests/...
Src/GoogleApis/Apis/Requests/RequestDecorators/EtagRequestDecorator.cs:12: ///
Decorate a request with ETag information. Sets the IfMatch/IfNoneMatch
Finish this comment

http://codereview.appspot.com/6344047/diff/3001/Src/GoogleApis/Apis/Requests/...
Src/GoogleApis/Apis/Requests/RequestDecorators/EtagRequestDecorator.cs:30:
public string ETag { get; set; }
Either make these read-only/private set, or remove them from the constructor and
use the { foo = bar } pattern

http://codereview.appspot.com/6344047/diff/3001/Src/GoogleApis/Apis/Requests/...
Src/GoogleApis/Apis/Requests/RequestDecorators/EtagRequestDecorator.cs:65: 
remove empty line
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b