会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
chester
博客园
首页
新随笔
联系
订阅
管理
2023年11月16日
.NET8依赖注入新特性Keyed services
摘要: 什么是Keyed service Keyed service是指,为一个需要注入的服务定义一个Key Name,并使用使用Key Name检索依赖项注入 (DI) 服务的机制。 使用方法 通过调用 AddKeyedSingleton (或 AddKeyedScoped 或 AddKeyedTrans
阅读全文
posted @ 2023-11-16 10:05 chester·chen
阅读(2099)
评论(0)
推荐(7)