-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
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
- Content Source: docs/architecture/blazor-for-web-forms-developers/config.md
- Product: dotnet-architecture
- Technology: blazor
- GitHub Login: @csharpfritz
- Microsoft Alias: jefritz