< Summary

Class:Microsoft.Azure.Batch.Common.RequestResult
Assembly:Microsoft.Azure.Batch
File(s):C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\Common\RequestResult.cs
Covered lines:6
Uncovered lines:1
Coverable lines:7
Total lines:40
Line coverage:85.7% (6 of 7)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_RequestInformation()-100%100%
get_Exception()-100%100%
get_Task()-0%100%
.ctor(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\Common\RequestResult.cs

#LineLine coverage
 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
 4namespace 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>
 12617        public RequestInformation RequestInformation { get; private set; }
 18
 19        /// <summary>
 20        /// Gets the exception hit during execution of the request, if any.
 21        /// </summary>
 6822        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>
 027        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
 5534        public RequestResult(RequestInformation requestInformation,  Exception exception)
 35        {
 5536            this.RequestInformation = requestInformation;
 5537            this.Exception = exception;
 5538        }
 39    }
 40}