< Summary

Class:Azure.Identity.AbstractAcquireTokenParameterBuilderExtensions
Assembly:Azure.Identity
File(s):C:\Git\azure-sdk-for-net\sdk\identity\Azure.Identity\src\AbstractAcquireTokenParameterBuilderExtensions.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:24
Line coverage:100% (6 of 6)
Covered branches:2
Total branches:2
Branch coverage:100% (2 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
ExecuteAsync()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\identity\Azure.Identity\src\AbstractAcquireTokenParameterBuilderExtensions.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Threading;
 5using System.Threading.Tasks;
 6using Microsoft.Identity.Client;
 7
 8namespace Azure.Identity
 9{
 10    internal static class AbstractAcquireTokenParameterBuilderExtensions
 11    {
 12        public static async Task<AuthenticationResult> ExecuteAsync<T>(this AbstractAcquireTokenParameterBuilder<T> buil
 13            where T : AbstractAcquireTokenParameterBuilder<T>
 14        {
 17215            Microsoft.Identity.Client.AuthenticationResult result = async
 17216                ? await builder.ExecuteAsync(cancellationToken).ConfigureAwait(false)
 17217#pragma warning disable AZC0102 // Do not use GetAwaiter().GetResult(). Use the TaskExtensions.EnsureCompleted() extensi
 17218                : builder.ExecuteAsync(cancellationToken).GetAwaiter().GetResult();
 19#pragma warning restore AZC0102 // Do not use GetAwaiter().GetResult(). Use the TaskExtensions.EnsureCompleted() extensi
 20
 13621            return result;
 13622        }
 23    }
 24}

Methods/Properties

ExecuteAsync()