var action = context.ActionDescriptor as ControllerActionDescriptor;
var permission = action.MethodInfo.GetCustomAttribute<PermissionAttribute>();

大概就是这样。

相关文章:

  • 2021-09-23
  • 2021-08-13
  • 2021-10-06
  • 2021-05-30
  • 2022-12-23
  • 2021-12-17
  • 2021-09-27
  • 2021-09-29
猜你喜欢
  • 2021-06-02
  • 2021-12-13
  • 2022-12-23
  • 2021-09-27
  • 2021-12-15
  • 2022-12-23
相关资源
相似解决方案