
A very good blog post from Christian Nagel on how to use the newest .NET Core 3.0 features for dependency injection in C#, leveraging the Host class.
Christian is a well-known C# author, teacher, consultant.
His books are quite often referred to as reference in this field.
Recommended reading!