五维思考

学习要加,骄傲要减,机会要乘,懒惰要除。 http://www.5dthink.cn

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2020年1月19日

摘要: 前言: 在Autofac的使用中,提供了个种注入的API其中GetAssemblies()用着特别的舒坦。 1、core2.0也可以使用Autofac的包,但框架自身也提供了默认的注入Api,IServiceCollection(Transient、AddSingleton、Scoped) serv 阅读全文
posted @ 2020-01-19 11:04 五维思考 阅读(736) 评论(0) 推荐(0) 编辑

摘要: public void ConfigureServices(IServiceCollection services) { string strValue = Configuration.GetSection("Appsetings").GetSection("key").Value; foreach 阅读全文
posted @ 2020-01-19 10:27 五维思考 阅读(340) 评论(0) 推荐(0) 编辑

摘要: 1.创建【特性】用于标注依赖注入 using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; namespace Util.Attributes { /// <summ 阅读全文
posted @ 2020-01-19 10:25 五维思考 阅读(1745) 评论(0) 推荐(0) 编辑

QQ群:1. 全栈码农【346906288】2. VBA/VSTO【2660245】