LEFT | RIGHT |
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 } | 63 } |
64 | 64 |
65 #endregion | 65 #endregion |
66 | 66 |
67 /// <summary> Creates a new service request. </summary> | 67 /// <summary> Creates a new service request. </summary> |
68 protected ClientServiceRequest(IClientService service) | 68 protected ClientServiceRequest(IClientService service) |
69 { | 69 { |
70 this.service = service; | 70 this.service = service; |
71 } | 71 } |
72 | 72 |
| 73 /// <summary> |
| 74 /// Initializes request's parameters. Inherited classes MUST override th
is method to add parameters to the |
| 75 /// <see cref="RequestParameters"/> dictionary. |
| 76 /// </summary> |
73 protected virtual void InitParameters() | 77 protected virtual void InitParameters() |
74 { | 78 { |
75 RequestParameters = new Dictionary<string, IParameter>(); | 79 RequestParameters = new Dictionary<string, IParameter>(); |
76 } | 80 } |
77 | 81 |
78 #region Execution | 82 #region Execution |
79 | 83 |
80 public TResponse Execute() | 84 public TResponse Execute() |
81 { | 85 { |
82 try | 86 try |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 dict.Add(name, value); | 375 dict.Add(name, value); |
372 } | 376 } |
373 } | 377 } |
374 | 378 |
375 return dict; | 379 return dict; |
376 } | 380 } |
377 | 381 |
378 #endregion | 382 #endregion |
379 } | 383 } |
380 } | 384 } |
LEFT | RIGHT |