Blazor Services
I dont know too much blazor, but I have a .cs file in a /Settings folder, in which I would like to access a service which is storing state. (The service called
In razor components, i can just use
How can i do the same inside of a standard c# file?
State is stored in /Appearance).In razor components, i can just use
@inject State state, and then access and modify it using state.<prop>How can i do the same inside of a standard c# file?