你的位置: 码友网首页 / 资讯源列表 / How to Resolve Instances With ASP.NET Core DI

关于[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/

收录时间: 2022-07-06 浏览量: 1452 分类: ASP.NET Core

| 1 收藏 | 0