Add AddAppConfigurations extension for config-section-based client construction#728
Open
m-nash wants to merge 1 commit intoAzure:mainfrom
Open
Add AddAppConfigurations extension for config-section-based client construction#728m-nash wants to merge 1 commit intoAzure:mainfrom
m-nash wants to merge 1 commit intoAzure:mainfrom
Conversation
…nstruction Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds two new
AddAppConfigurationsextension methods onIConfigurationBuilderthat allow constructing an Azure App Configuration provider directly from anIConfigurationsection using the newConfigurationClientSettingsfromAzure.Data.AppConfiguration1.9.0 andGetAzureClientSettings<T>fromAzure.Identity1.18.0.This replaces the approach taken in Azure/azure-sdk-for-net#56619 (which created a separate package) by implementing the functionality directly in the existing provider package.
Resolves Azure/azure-sdk-for-net#55509
Changes
New APIs (marked
[Experimental("SCME0002")])AddAppConfigurations(IConfigurationBuilder, string, bool)- Adds App Configuration using a named configuration sectionAddAppConfigurations(IConfigurationBuilder, string, Action<AzureAppConfigurationOptions>, bool)- Same with additional options callbackPackage Updates
Azure.Data.AppConfiguration1.8.0 -> 1.9.0 (providesConfigurationClientSettings)Azure.Identity1.15.0 -> 1.18.0 (providesGetAzureClientSettings<T>)Microsoft.Extensions.DependencyInjection.Abstractions8.0.2 -> 10.0.3 (required by transitive deps)New Files
ExperimentalAttribute.cs- Polyfill for[Experimental]attribute on netstandard2.0/2.1docs/ExperimentalFeatures.md- Documents the SCME0002 diagnostic ID usageConfigurationSettingsTests.cs- 10 unit tests (6 validation + 4 happy-path)Example Usage