摘要:
来源:https://blog.csdn.net/lwplvx/article/details/113614095 var endpoint = httpContext.GetEndpoint(); if (endpoint != null) { var permissionAttribute = 阅读全文
摘要:
中间件中如果想用Service服务,不能用注入,需要这样写: using (var serviceCope = httpContext.RequestServices.CreateScope()) { ISysSettingService? _sysSettingService = serviceC 阅读全文