2024年2月5日
摘要: 来源:https://blog.csdn.net/lwplvx/article/details/113614095 var endpoint = httpContext.GetEndpoint(); if (endpoint != null) { var permissionAttribute = 阅读全文
posted @ 2024-02-05 17:19 邢帅杰 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 中间件中如果想用Service服务,不能用注入,需要这样写: using (var serviceCope = httpContext.RequestServices.CreateScope()) { ISysSettingService? _sysSettingService = serviceC 阅读全文
posted @ 2024-02-05 17:11 邢帅杰 阅读(119) 评论(0) 推荐(0) 编辑