-
Notifications
You must be signed in to change notification settings - Fork 0
Weird stuff going on. #1
Copy link
Copy link
Open
Description
I simplified the test to inject IOptions into OptionsTestFunctionApplication and the results:
It picked the values from local.settings.json where the keys were written like the following:
- "Endpoint": "http://www.contoso.com/api",
But none of these works:
- "testSettings__endpoint": "http://www.contoso.com/another_api",
- "TestSettings__Endpoint": "http://www.contoso.com/another_api",
- "TestSettings:Endpoint": "http://www.contoso.com/another_api",
See PR for simplified scenario: #2
So, technically you could use the IOptions to inject values, but only if your fields (= keys ) doesn't conflict with each others 😬
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels