Generate code for AppSettings #334
Unanswered
nickrandolph
asked this question in
Ideas
Replies: 1 comment
-
Assumption:
Code GenerationFor each settings file, a corresponding class will be created with a method that can be invoked to load the information into the IConfiguration. Two options:
Question: How do we integrate the generated files into the HostBuilder extension methods? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current support for appsettings is for the appsettings.json (and appsettings.platform.json) to be read on application startup. This doesn't perform well, particularly on WASM where it requires waiting for the file store to be accessible.
Proposed alternative is to code generate a wrapper for appsettings which would have the values defined as application constants, meaning that no file access is required as runtime
Beta Was this translation helpful? Give feedback.
All reactions