dotnet核心c#依赖注入中的HostBuilder vs ServiceProvider?
dotnetcore依赖注入系统看起来一团糟。有这么多的选择和方法做事情 我在阅读有关服务提供商的文章时遇到了通用hostbuilder 有什么区别?什么时候使用hostbuilder而不是简单的服务提供商dotnet核心c#依赖注入中的HostBuilder vs ServiceProvider?,c#,.net-core,dependency-injection,C#,.net Core,Dependency Injection,dotnetcore依赖注入系统看起来一团糟。有这么多的选择和方法做事情 我在阅读有关服务提供商的文章时遇到了通用hostbuilder 有什么区别?什么时候使用hostbuilder而不是简单的服务提供商