OLD | NEW |
1 /* | 1 /* |
2 Copyright 2012 Google Inc | 2 Copyright 2012 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 } | 118 } |
119 | 119 |
120 #endregion // Construction | 120 #endregion // Construction |
121 | 121 |
122 #region Properties | 122 #region Properties |
123 | 123 |
124 /// <summary> Gets or sets the service. </summary> | 124 /// <summary> Gets or sets the service. </summary> |
125 public IClientService Service { get; private set; } | 125 public IClientService Service { get; private set; } |
126 | 126 |
127 /// <summary>· | 127 /// <summary>· |
128 /// Gets or sets the path of the method (combined with <see cref="Servic
e.BaseUri"/>) to produce absolute Uri.· | 128 /// Gets or sets the path of the method (combined with <see cref="IClien
tService.BaseUri"/>) to produce |
| 129 /// absolute Uri.· |
129 /// </summary> | 130 /// </summary> |
130 public string Path { get; private set; } | 131 public string Path { get; private set; } |
131 | 132 |
132 /// <summary> Gets or sets the Http method of this upload (used to initi
alize the upload). </summary> | 133 /// <summary> Gets or sets the Http method of this upload (used to initi
alize the upload). </summary> |
133 public string HttpMethod { get; private set; } | 134 public string HttpMethod { get; private set; } |
134 | 135 |
135 /// <summary> Gets or sets the stream to upload. </summary> | 136 /// <summary> Gets or sets the stream to upload. </summary> |
136 public Stream ContentStream { get; private set; } | 137 public Stream ContentStream { get; private set; } |
137 | 138 |
138 /// <summary> Gets or sets the stream's Content-Type. </summary> | 139 /// <summary> Gets or sets the stream's Content-Type. </summary> |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 base.ProcessResponse(response); | 765 base.ProcessResponse(response); |
765 ResponseBody = Service.DeserializeResponse<TResponse>(response).Resu
lt; | 766 ResponseBody = Service.DeserializeResponse<TResponse>(response).Resu
lt; |
766 | 767 |
767 if (ResponseReceived != null) | 768 if (ResponseReceived != null) |
768 ResponseReceived(ResponseBody); | 769 ResponseReceived(ResponseBody); |
769 } | 770 } |
770 | 771 |
771 #endregion // Overrides | 772 #endregion // Overrides |
772 } | 773 } |
773 } | 774 } |
OLD | NEW |