< Summary

Class:Microsoft.Azure.Attestation.CustomDelegatingHandler
Assembly:Microsoft.Azure.Attestation
File(s):C:\Git\azure-sdk-for-net\sdk\attestation\Microsoft.Azure.Attestation\src\Customized\CustomDelegatingHandler.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:30
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_Client()-0%100%
SendAsync()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\attestation\Microsoft.Azure.Attestation\src\Customized\CustomDelegatingHandler.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
 4using System.Threading;
 5using System.Threading.Tasks;
 6using System.Net.Http;
 7
 8namespace Microsoft.Azure.Attestation
 9{
 10    /// <summary>
 11    /// The Attestation credential class that implements <see cref="CustomDelegatingHandler"/>
 12    /// </summary>
 13    public class CustomDelegatingHandler : DelegatingHandler
 14    {
 015        internal AttestationClient Client { get; set; }
 16
 17        /// <summary>
 18        /// SendAsync.
 19        /// </summary>
 20        /// <param name="request"> request. </param>
 21        /// <param name="cancellationToken"> cancellationToken. </param>
 22        protected async override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cance
 23        {
 24            // Call the inner handler.
 025            var response = await base.SendAsync(request, cancellationToken).ConfigureAwait(false);
 26
 027            return response;
 028        }
 29    }
 30}

Methods/Properties

get_Client()
SendAsync()