@andrea.chiarelli thanks for the excellent article! I have read the official docs several times and viewed a dozen other articles on the topic, but I found yours to be the most helpful to me in learning how DI actually works in .NET.
I am curious - is this information still current as of .NET 6? For example, in the Console Application section, you make reference to IServiceProvider and load orderManager via serviceProvider’s GetService method. Is this still the way this is done in .NET 6? I have seen other examples without this code, but I also don’t understand how the service is actually being injected in those examples.