Category "inject"

How can I use/inject a service in a "normal" c# class like in Blazor @inject ClassName classObject

I have a Blazor Project, in the Program.cs(formaly aka Startup.cs) I added a service builder.Services.AddSingleton<Models.UserVisit>();

Inject cronjob once namespace created

This mainly for GKE cluster with preemptible nodes. Google Cloud would shutdown any node without warning, which leaves lots of pods with Terminated and / or Nod