您当前的位置: 首页 >  .net

暂无认证

  • 0浏览

    0关注

    98487博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

[Asp.Net Core] Autofac支持AOP-2

发布时间:2021-12-03 09:50:24 ,浏览量:0

1.EnableInterfaceInterceptors+抽象标记特性[Intercept(typeof(CustomAutofacAop))] ,只要是实现了这个抽象就可以支持AOP 2.EnableClassInterceptors + 实现类标记特性[Intercept(typeof(CustomAutofacAop))] ,只有标记了这个特性的,才能够支持AOP如果使用EnableClassInterceptors 来支持AOP,实现类中支持AOP的方法必须为虚方法 3.具体实现中标记特性

在这里插入图片描述

4.Autofac支持AOP-2 实现类标记特性
containerBuilder.RegisterType
关注
打赏
1655516835
查看更多评论
立即登录/注册

微信扫码登录

0.7466s