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

Delta Between Two Patch Sets: Src/GoogleApis/Apis/Requests/IClientServiceRequest.cs

Issue 61660043: Issue 362: add Resume() method to ResumableUpload (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Left Patch Set: minor Created 10 years, 1 month ago
Right Patch Set: add try-catch on resuming Created 10 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
LEFTRIGHT
(no file at all)
1 /* 1 /*
2 Copyright 2011 Google Inc 2 Copyright 2011 Google Inc
3 3
4 Licensed under the Apache License, Version 2.0 (the "License"); 4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License. 5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at 6 You may obtain a copy of the License at
7 7
8 http://www.apache.org/licenses/LICENSE-2.0 8 http://www.apache.org/licenses/LICENSE-2.0
9 9
10 Unless required by applicable law or agreed to in writing, software 10 Unless required by applicable law or agreed to in writing, software
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 /// <summary>Creates a HTTP request message with all path and query para meters, ETag, etc.</summary> 47 /// <summary>Creates a HTTP request message with all path and query para meters, ETag, etc.</summary>
48 /// <param name="overrideGZipEnabled"> 48 /// <param name="overrideGZipEnabled">
49 /// If <c>null</c> use the service default GZip behavior. Otherwise indi cates if GZip is enabled or disabled. 49 /// If <c>null</c> use the service default GZip behavior. Otherwise indi cates if GZip is enabled or disabled.
50 /// </param> 50 /// </param>
51 HttpRequestMessage CreateRequest(Nullable<bool> overrideGZipEnabled = nu ll); 51 HttpRequestMessage CreateRequest(Nullable<bool> overrideGZipEnabled = nu ll);
52 52
53 /// <summary>Executes the request asynchronously and returns the result stream.</summary> 53 /// <summary>Executes the request asynchronously and returns the result stream.</summary>
54 Task<Stream> ExecuteAsStreamAsync(); 54 Task<Stream> ExecuteAsStreamAsync();
55 55
56 /// <summary>Executes the request asynchronously and returns the result stream.</summary> 56 /// <summary>Executes the request asynchronously and returns the result stream.</summary>
57 /// <param name="cencellationToken">A cancellation token for canceling t he request in the middle of the· 57 /// <param name="cancellationToken">A cancellation token to cancel opera tion.</param>
58 /// execution. operation.</param> 58 Task<Stream> ExecuteAsStreamAsync(CancellationToken cancellationToken);
59 Task<Stream> ExecuteAsStreamAsync(CancellationToken cencellationToken);
60 59
61 /// <summary>Executes the request and returns the result stream.</summar y> 60 /// <summary>Executes the request and returns the result stream.</summar y>
62 Stream ExecuteAsStream(); 61 Stream ExecuteAsStream();
63 } 62 }
64 63
65 /// <summary> 64 /// <summary>
66 /// A client service request which inherits from <seealso cref="IClientServi ceRequest"/> and represents a specific· 65 /// A client service request which inherits from <seealso cref="IClientServi ceRequest"/> and represents a specific·
67 /// service request with the given response type. It supports both sync and async execution to get the response. 66 /// service request with the given response type. It supports both sync and async execution to get the response.
68 /// </summary> 67 /// </summary>
69 public interface IClientServiceRequest<TResponse> : IClientServiceRequest 68 public interface IClientServiceRequest<TResponse> : IClientServiceRequest
70 { 69 {
71 /// <summary>Executes the request asynchronously and returns the result object.</summary> 70 /// <summary>Executes the request asynchronously and returns the result object.</summary>
72 Task<TResponse> ExecuteAsync(); 71 Task<TResponse> ExecuteAsync();
73 72
74 /// <summary>Executes the request asynchronously and returns the result object.</summary> 73 /// <summary>Executes the request asynchronously and returns the result object.</summary>
75 /// <param name="cencellationToken">A cancellation token for canceling t he request in the middle of execution. 74 /// <param name="cancellationToken">A cancellation token to cancel opera tion.</param>
76 /// </param> 75 Task<TResponse> ExecuteAsync(CancellationToken cancellationToken);
77 Task<TResponse> ExecuteAsync(CancellationToken cencellationToken);
78 76
79 /// <summary>Executes the request and returns the result object.</summar y> 77 /// <summary>Executes the request and returns the result object.</summar y>
80 TResponse Execute(); 78 TResponse Execute();
81 } 79 }
82 } 80 }
LEFTRIGHT

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