What about code files
- Dominant language
- No language data
- Stars
- 4.8k
- Forks
- 6.1k
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 370
Description
What about if I don't want to start calling appsettings in my razor file, I want to call them in a .cs class where I have some common application logic. Seems I cannot use "inject" there. I've googled, but seems I am supposed to write services and various other things that look rather complicated, I would have assumed that just accessing config settings is something I should be able to do from everywhere with a single line of code, like with the web.config.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 1974914b-d7fa-8a3e-e7c0-3d80eb5d5079
* Version Independent ID: e24f4a05-bf1b-331e-b234-1c904ac95346
* Content: [App configuration](https://docs.microsoft.com/en-us/dotnet/architecture/blazor-for-web-forms-developers/config)
* Content Source: [docs/architecture/blazor-for-web-forms-developers/config.md](https://github.com/dotnet/docs/blob/main/docs/architecture/blazor-for-web-forms-developers/config.md)
* Product: **dotnet-architecture**
* Technology: **blazor**
* GitHub Login: @csharpfritz
* Microsoft Alias: **jefritz**
Contributor guide
Assessment
This issue has not been assessed yet.