| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. See License.txt in the project root for license information. |
| | | 3 | | |
| | | 4 | | namespace Microsoft.Azure.Batch.Common |
| | | 5 | | { |
| | | 6 | | using System; |
| | | 7 | | using System.Collections.Generic; |
| | | 8 | | |
| | | 9 | | /// <summary> |
| | | 10 | | /// Represents the context for a request to the Batch service and provides additional information about its executio |
| | | 11 | | /// </summary> |
| | | 12 | | public sealed class OperationContext |
| | | 13 | | { |
| | | 14 | | /// <summary> |
| | | 15 | | /// Initializes a new instance of the <see cref="OperationContext"/> class. |
| | | 16 | | /// </summary> |
| | 247 | 17 | | public OperationContext() |
| | | 18 | | { |
| | 247 | 19 | | this.RequestResults = new List<RequestResult>(); |
| | 247 | 20 | | } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// Gets or sets the list of request results for the current operation. Each <see cref="RequestResult"/> corres |
| | | 24 | | /// request sent to the server. There may be more than one item in this list in the case of retries. |
| | | 25 | | /// </summary> |
| | | 26 | | /// <value>An <see cref="System.Collections.IList"/> object that contains <see cref="RequestResult"/> objects th |
| | | 27 | | public IList<RequestResult> RequestResults //TODO: Should this be a readonly list? |
| | | 28 | | { |
| | 150 | 29 | | get; |
| | 247 | 30 | | internal set; |
| | | 31 | | } |
| | | 32 | | } |
| | | 33 | | } |