关于[How to Resolve Instances With ASP.NET Core DI]的摘要:
In ASP.NET Core dependency injection, we usually register injectable dependencies at the start of our program. We can then resolve these dependencies (services) much later once when we need them. Sometimes, however, we may need to resolve those dependencies even before building our app. This happens especially when we need to initialize something at startup. This could range from a simple database for storage to a set of SCADA-controlled devices.
原文地址: https://code-maze.com/aspnetcore-resolve-instances-with-dependency-injection/