< Summary

Class:Azure.Security.KeyVault.ClientOptionsExtensions
Assembly:Azure.Security.KeyVault.Keys
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Shared\src\ClientOptionsExtensions.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:21
Line coverage:100% (6 of 6)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Shared\src\ClientOptionsExtensions.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Collections.Generic;
 5using Azure.Core;
 6
 7namespace Azure.Security.KeyVault
 8{
 9    internal static class ClientOptionsExtensions
 10    {
 11        public static void ConfigureLogging(this ClientOptions clientOptions)
 12        {
 115413            IList<string> allowedHeaderNames = clientOptions.Diagnostics.LoggedHeaderNames;
 115414            allowedHeaderNames.Add("x-ms-keyvault-network-info");
 115415            allowedHeaderNames.Add("x-ms-keyvault-region");
 115416            allowedHeaderNames.Add("x-ms-keyvault-service-version");
 17
 115418            clientOptions.Diagnostics.LoggedQueryParameters.Add("api-version");
 115419        }
 20    }
 21}

Methods/Properties

ConfigureLogging(...)