考虑以下代码:
public class MyAttribute : Attribute { }
[MyAttribute]
public class MyControlller : Controller
{
//...
}
现在我有了Global Action Filter一个ActionExecutingContext对象。
我的问题是,在这里,我如何检查请求Controller是否已用我的 custom 装饰Attribute。
考虑以下代码:
public class MyAttribute : Attribute { }
[MyAttribute]
public class MyControlller : Controller
{
//...
}
现在我有了Global Action Filter一个ActionExecutingContext对象。
我的问题是,在这里,我如何检查请求Controller是否已用我的 custom 装饰Attribute。