< Summary

Class:Microsoft.Extensions.Azure.AzureClientServiceCollectionExtensions
Assembly:Microsoft.Extensions.Azure
File(s):C:\Git\azure-sdk-for-net\sdk\core\Microsoft.Extensions.Azure\src\AzureClientServiceCollectionExtensions.cs
Covered lines:2
Uncovered lines:0
Coverable lines:2
Total lines:24
Line coverage:100% (2 of 2)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
AddAzureClients(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\core\Microsoft.Extensions.Azure\src\AzureClientServiceCollectionExtensions.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using Microsoft.Extensions.DependencyInjection;
 5using System;
 6
 7namespace Microsoft.Extensions.Azure
 8{
 9    /// <summary>
 10    /// Azure clients builder extensions for <see cref="IServiceCollection"/>.
 11    /// </summary>
 12    public static class AzureClientServiceCollectionExtensions
 13    {
 14        /// <summary>
 15        /// Adds the <see cref="IAzureClientFactory{TClient}"/> and related services to the <see cref="IServiceCollectio
 16        /// </summary>
 17        /// <param name="collection">The <see cref="IServiceCollection"/>.</param>
 18        /// <param name="configureClients">An <see cref="AzureClientFactoryBuilder"/> that can be used to configure the 
 19        public static void AddAzureClients(this IServiceCollection collection, Action<AzureClientFactoryBuilder> configu
 20        {
 4421            configureClients(new AzureClientFactoryBuilder(collection));
 4422        }
 23    }
 24}

Methods/Properties

AddAzureClients(...)