摘要: 在Asp.Net core中的IServiceCollection容器中注册服务的生命周期分以下3种: 1、Transient 通过AddTransient注册,会在IServiceCollection容器每次被请求时创建实例。 暂时生存期服务 (AddTransient) 是每次从服务容器进行请求 阅读全文
posted @ 2020-06-30 10:22 流星泪 阅读(1144) 评论(0) 推荐(0)