2020年4月1日

Autofac asp.netcore 几种容器注入方法

摘要: 方法1 netcore3.0+ public class Startup { public void Configure(IApplicationBuilder app) { app.UseRouting(); app.UseEndpoints(builder => builder.MapContr 阅读全文

posted @ 2020-04-01 15:52 迎着风追赶 阅读(747) 评论(0) 推荐(0) 编辑

Autofac json configuration

摘要: static void Main(string[] args) { var config = new ConfigurationBuilder(); config.AddJsonFile("autofac.json"); // Register the ConfigurationModule wit 阅读全文

posted @ 2020-04-01 14:06 迎着风追赶 阅读(319) 评论(0) 推荐(0) 编辑

导航