To run some async code before the host get started.
There has been post talking about various techniques before Microsoft.Extensions.Hosting
version 8.0.0
. For example: https://andrewlock.net/running-async-tasks-on-app-startup-in-asp-net-core-part-1/.
The problem was, it was kind of hard to: