摘要: 接口处 声明一个切入逻辑 标记接口 所有的方法都要aop 了 [Intercept(typeof(CustomAutofactAOP))] public interface Itest { public void hello(); } public class CustomAutofactAOP : 阅读全文
posted @ 2021-09-24 15:43 非著名架构师 阅读(141) 评论(0) 推荐(0)
摘要: ///第一步:配置鉴权的服务 services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme) .AddCookie(options => { options.LoginPath = new PathStrin 阅读全文
posted @ 2021-09-24 14:50 非著名架构师 阅读(404) 评论(0) 推荐(0)