Default value of keys in Azure App Configuration
Hello,
I am trying to implement azure app Configuration. I want to know how we can control the default values of a key. For example I do not have the key value pair in the app config but I do have the property in setting.cs file and from the service when I am trying to get that value for that missing key, Currently it gives me default value, like if the type of is bool it will return the value as
false
, similarly for string
null
and int
0
. How can I control this behavior and thrown an error message on key not found?
Does anybody how can I resolve the above issue?
Thanks in advance!