-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Description
Hello,
We are using AAC with 2 endpoints:
- one storing the configuration
- one storing the feature flags, using Microsoft.FeatureManagement
We are calling AddAzureAppConfiguration for both (some application only use the one for configuration, others the one for feature flags).
This ends up in having two instances of the singleton IConfigurationRefresherProvider in the dependency injection provider. This causes issue on our integration tests where we try to replace the first instance.
Would you accept a change to replace the AddSingleton with TryAddSingleton here?
https://github.com/Azure/AppConfiguration-DotnetProvider/blob/main/src/Microsoft.Extensions.Configuration.AzureAppConfiguration/AzureAppConfigurationExtensions.cs#L99C1-L107C14
If yes, I can propose a Pull Request.
Thanks,
RemyBoyer, Nechepso, MartyMcFlaye, RobinYounited and zhiyuanliang-ms
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done