Skip to content

What about code files #24238

@cactusoft

Description

@cactusoft

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions