I have a background class that is not a Blazor component, and I want to use the built-in logger (ILogger) service.
I can’t use “[Inject]” on a property (because it’s not a component), and I can’t use the supported constructor injection because the constructor has other parameters (i.e. not just the single ILogger parameter). I have looked for something like “Application.GetService” (similar to what I've used other IOC implementations) that I could use in the constructor but can’t find anything.
Any ideas?