06 2022 档案

摘要:1、Nuget引入Castle.Core 2、新建CustomInterceptor类,实现IInterceptor接口 1 using Castle.DynamicProxy; 2 using System; 3 using System.Collections.Generic; 4 using 阅读全文
posted @ 2022-06-19 16:15 ziff123 阅读(134) 评论(0) 推荐(0) 编辑
摘要:1、Nuget引入 Autofac、Autofac.Extensions.DependencyInjection 2、Program.cs里面添加注入配置 { //第一种方式注入 builder.Host.UseServiceProviderFactory(new AutofacServicePro 阅读全文
posted @ 2022-06-19 14:54 ziff123 阅读(141) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示