|   |  | 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.Threading.Tasks; | 
|   |  | 8 |  |  | 
|   |  | 9 |  |     /// <summary> | 
|   |  | 10 |  |     /// Represents the result of a physical request. | 
|   |  | 11 |  |     /// </summary> | 
|   |  | 12 |  |     public sealed class RequestResult | 
|   |  | 13 |  |     { | 
|   |  | 14 |  |         /// <summary> | 
|   |  | 15 |  |         /// Gets information about the request. | 
|   |  | 16 |  |         /// </summary> | 
|   | 126 | 17 |  |         public RequestInformation RequestInformation { get; private set; } | 
|   |  | 18 |  |  | 
|   |  | 19 |  |         /// <summary> | 
|   |  | 20 |  |         /// Gets the exception hit during execution of the request, if any. | 
|   |  | 21 |  |         /// </summary> | 
|   | 68 | 22 |  |         public Exception Exception { get; private set; } | 
|   |  | 23 |  |  | 
|   |  | 24 |  |         /// <summary> | 
|   |  | 25 |  |         /// Gets the <see cref="System.Threading.Tasks.Task"/> object associated with the request. | 
|   |  | 26 |  |         /// </summary> | 
|   | 0 | 27 |  |         public Task Task { get; internal set; } | 
|   |  | 28 |  |  | 
|   |  | 29 |  |         /// <summary> | 
|   |  | 30 |  |         /// Initializes a new <see cref="RequestResult"/>. | 
|   |  | 31 |  |         /// </summary> | 
|   |  | 32 |  |         /// <param name="requestInformation">The information associated with the individual request.</param> | 
|   |  | 33 |  |         /// <param name="exception">The exception hit during the execution of the request (or null if there was no excep | 
|   | 55 | 34 |  |         public RequestResult(RequestInformation requestInformation,  Exception exception) | 
|   |  | 35 |  |         { | 
|   | 55 | 36 |  |             this.RequestInformation = requestInformation; | 
|   | 55 | 37 |  |             this.Exception = exception; | 
|   | 55 | 38 |  |         } | 
|   |  | 39 |  |     } | 
|   |  | 40 |  | } |