Currently, the provider will throw a FormatException when processing feature flags with an invalid JSON format. However, the TryRefreshAsync method and startup do not properly handle this exception and will cause the provider to fail when an invalid feature flag is loaded. It should instead catch the exception and return false, as it does for all other known exceptions.
Currently, the provider will throw a
FormatException
when processing feature flags with an invalid JSON format. However, theTryRefreshAsync
method and startup do not properly handle this exception and will cause the provider to fail when an invalid feature flag is loaded. It should instead catch the exception and return false, as it does for all other known exceptions.