Timeline for Is there a way to make AddUserSecrets take precedence over Configuration.AddAzureKeyVault?
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 1 at 17:51 | vote | accept | Grofit | ||
| Sep 23 at 7:48 | answer | added | Grofit | timeline score: 0 | |
| Sep 23 at 7:28 | comment | added | Grofit | Added example user secrets and configuration debug output to show how value is missing when KV has same property. | |
| Sep 23 at 7:24 | history | edited | Grofit | CC BY-SA 4.0 |
Added some evidence for comments
|
| Sep 23 at 6:01 | answer | added | Oliver | timeline score: 1 | |
| Sep 23 at 5:12 | comment | added | Guru Stron |
Try calling AddUserSecrets before AddAzureKeyVault
|
|
| Sep 22 at 19:58 | comment | added | Richard |
If you look at the IConfiguration instance in a debugger, you can see the providers in order: check that. IME the precedence is 100% driven by the order providers are added to the builder (remember you can .Clear() to remove the default included providers).
|
|
| Sep 22 at 17:52 | comment | added | Ivan Petrov | shouldn't really happen judging from the implementation code. | |
| Sep 22 at 15:56 | history | asked | Grofit | CC BY-SA 4.0 |