/// summary/// 排除Token检测Filter/// /summary[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true, Inherited = true)]public class ExcludeTokenFilterAttribute : A...
/// <summary>
/// 排除Token检测Filter
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public class ExcludeTokenFilterAttribute : Attribute
{
}
var actionDescriptor = context.ActionDescriptor as ControllerActionDescriptor;
//是否存在ExcludeToken特性 0-否 1-是
var excludeTokenAttr = actionDescriptor.EndpointMetadata.OfType<ExcludeTokenFilterAttribute>().Count();
if (excludeTokenAttr == 0)
{
}
织梦狗教程
本文标题为:net core 忽略过滤器
基础教程推荐
猜你喜欢
- Unity shader实现高斯模糊效果 2023-01-16
- c# – USING块在网站与Windows窗体中的行为不同 2023-09-20
- 实例详解C#实现http不同方法的请求 2022-12-26
- C#中的Linq to JSON操作详解 2023-06-08
- C#获取指定目录下某种格式文件集并备份到指定文件夹 2023-05-30
- C#通过标签软件Bartender的ZPL命令打印条码 2023-05-16
- Unity 如何获取鼠标停留位置下的物体 2023-04-10
- C# 解析XML和反序列化的示例 2023-04-14
- C#中 Json 序列化去掉null值的方法 2022-11-18
- C#调用摄像头实现拍照功能的示例代码 2023-03-09
