私は自分のビューエンジンを書いています。
public class MyViewEngine : RazorViewEngine
{
public override ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache)
{
// Here, how do I get attributes defined on top of the Action ?
}
}
カスタム ビュー エンジン内の ASP.NET MVC カスタム属性
上記のSOの質問には、コントローラーの上に定義された属性を取得する方法があります。しかし、Action で定義された属性を取得する必要があります。