摘要: 1 安装依赖包 2 定义拦截器类(类定义看下面的参考资源链接) 3 定义被代理的接口和实现代理接口的类 using Autofac.Extras.DynamicProxy; using System; using System.Collections.Generic; using System.Te 阅读全文
posted @ 2021-01-19 18:27 温故纳新 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1 安装依赖包 安装 Autofac 和 Autofac.Extras.DynamicProxy 2 定义拦截器类 using System; using System.Linq; using Castle.DynamicProxy; // 添加引用 namespace ConsoleApp_Aut 阅读全文
posted @ 2021-01-19 15:47 温故纳新 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 定义简单单链表结构 public class ListNode { public int val; public ListNode next; public ListNode(int val = 0, ListNode next = null) { this.val = val; this.next 阅读全文
posted @ 2021-01-19 13:28 温故纳新 阅读(357) 评论(0) 推荐(0) 编辑