你的位置: 码友网首页 / 资讯源列表 / ASP.NET Core Pitfalls – Dependency Injection Lifetime Validation

关于[ASP.NET Core Pitfalls – Dependency Injection Lifetime Validation]的摘要:

As you can imagine, it doesn’t make much sense to have a service that is registered as singleton to depend on another service that is registered as scoped, because the singleton instantiation will only happen once. Take this example

原文地址: https://weblogs.asp.net/ricardoperes/asp-net-core-pitfalls-dependency-injection-lifetime-validation

收录时间: 2020-11-25 浏览量: 1108 分类: ASP.NET Core

| 0 收藏 | 0