I believe I found the answer! Startup.cs is not run before the first call to the API is made. After calling a simple Test method in one of my controllers, the BackgroundProcessing method was called That's a bit annoying, as I was hoping I later could create a backgroundworker that loads a lot of data into memory instead of it happening when the first call is made
You need to look at a "queued background service" where you can submit "jobs" to it and it will perform those jobs in a background queue.
The work flow goes like this:
BackgroundServiceHere is a very long-winded explanation on how it works: https://stackoverflow.com/a/63429262/1204153
Here is an example I made a while back: https://github.com/sonicmouse/ComputationService