< Summary

Class:Azure.Extensions.AspNetCore.Configuration.Secrets.AzureKeyVaultConfigurationSource
Assembly:Azure.Extensions.AspNetCore.Configuration.Secrets
File(s):C:\Git\azure-sdk-for-net\sdk\extensions\Azure.Extensions.AspNetCore.Configuration.Secrets\src\AzureKeyVaultConfigurationSource.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:26
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%100%
Build(...)-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\extensions\Azure.Extensions.AspNetCore.Configuration.Secrets\src\AzureKeyVaultConfigurationSource.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using Microsoft.Extensions.Configuration;
 5
 6namespace Azure.Extensions.AspNetCore.Configuration.Secrets
 7{
 8    /// <summary>
 9    /// Represents Azure Key Vault secrets as an <see cref="IConfigurationSource"/>.
 10    /// </summary>
 11    internal class AzureKeyVaultConfigurationSource : IConfigurationSource
 12    {
 13        private readonly AzureKeyVaultConfigurationOptions _options;
 14
 015        public AzureKeyVaultConfigurationSource(AzureKeyVaultConfigurationOptions options)
 16        {
 017            _options = options;
 018        }
 19
 20        /// <inheritdoc />
 21        public IConfigurationProvider Build(IConfigurationBuilder builder)
 22        {
 023            return new AzureKeyVaultConfigurationProvider(_options.Client, _options.Manager, _options.ReloadInterval);
 24        }
 25    }
 26}

Methods/Properties

.ctor(...)
Build(...)