You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a single key value that I want to read (consul) in alongside the appsettings.json file(not consul)
The value is a string representation of a boolean (true, false)
but when calling the injected _configuration["test-key"] from within the controller I am not getting any result.
Can I please have some guidance of what is potentially happening? I don't see any exeptions in the logs.
Hey, sorry for the slow reply. Are you still having this problem? Your setup looks OK at a first glance. Have you tried called GetDebugView on the IConfiguration. That should give you a clearer picture of what has actually been loaded into your config system at runtime. I know in the past when I've had issues like this it's been because I was accessing the configuration incorrectly, rather than it being a problem with loading the values from Consul or wherever.
I have a single key value that I want to read (consul) in alongside the appsettings.json file(not consul)
The value is a string representation of a boolean (true, false)
but when calling the injected _configuration["test-key"] from within the controller I am not getting any result.
Can I please have some guidance of what is potentially happening? I don't see any exeptions in the logs.
consul sturcture would be
How am I able to get just keys prefixed by features?
The text was updated successfully, but these errors were encountered: