❔ Get required value from IConfiguration
There is a GetRequiredSection extenion in Microsoft.Extensions.Configuration, but is there a GetRequired to return a non nullable value?
Also, why is the second variable here null but the first is not?
4 Replies
I'm reading on SO GetValue just doesn't work on complex types. So now just trying to see if there is anything for Get but not returning nullable.
Oh gosh. Just bind them to a class and or use IOptions
^
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.