| | 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.Net; |
| | 8 | |
|
| | 9 | | /// <summary> |
| | 10 | | /// A set of common information associated with a request. |
| | 11 | | /// </summary> |
| | 12 | | public class RequestInformation |
| | 13 | | { |
| | 14 | | /// <summary> |
| | 15 | | /// Gets or sets the Batch Error information which contains detailed metadata around |
| | 16 | | /// the specific error encountered. |
| | 17 | | /// </summary> |
| 22 | 18 | | public BatchError BatchError { get; protected internal set; } |
| | 19 | |
|
| | 20 | | /// <summary> |
| | 21 | | /// Gets or sets the HTTP status message for the request. |
| | 22 | | /// </summary> |
| 17 | 23 | | public string HttpStatusMessage { get; protected internal set; } |
| | 24 | |
|
| | 25 | | /// <summary> |
| | 26 | | /// Gets or sets the HTTP status code for the request. |
| | 27 | | /// In cases where an HTTP response was never received (for example on client side timeout) this property is nul |
| | 28 | | /// </summary> |
| 25 | 29 | | public HttpStatusCode? HttpStatusCode { get; protected internal set; } |
| | 30 | |
|
| | 31 | | // /// <summary> |
| | 32 | | // /// Gets or sets the start time of the request. |
| | 33 | | // /// </summary> |
| | 34 | | //public DateTime RequestStartTime { get; set; } |
| | 35 | |
|
| | 36 | | /// <summary> |
| | 37 | | /// Gets or sets the client-request-id set by the client. |
| | 38 | | /// </summary> |
| 57 | 39 | | public Guid? ClientRequestId { get; protected internal set; } |
| | 40 | |
|
| | 41 | | /// <summary> |
| | 42 | | /// Gets or sets the service request ID for this request. |
| | 43 | | /// </summary> |
| 17 | 44 | | public string ServiceRequestId { get; protected internal set; } |
| | 45 | |
|
| | 46 | | /// <summary> |
| | 47 | | /// Gets or sets the retry-after returned by the server (or null if none was returned) |
| | 48 | | /// </summary> |
| 12 | 49 | | public TimeSpan? RetryAfter { get; protected internal set; } |
| | 50 | | } |
| | 51 | | } |