title: Custom ASP.NET MVC ActionFilterAttribute - hooks never get called
body: <p>Hi I`m trying to do something that seems kinda easy, and is documented that way but for some reason its not going that easy.</p>
  
  <p>Basiclly I wrote something like this:</p>
  
  <pre><code>public class CacheControllAttribute : ActionFilterAttribute
  {
      public override void OnResultExecuting(ResultExecutingContext filterContext)
      { 
          //do something
          base.OnResultExecuting(filterContext);
      }
  }
  </code></pre>
  
  <p>However when i try and use this on an action result like this:</p>
  
  <pre><code>[CacheControllAttribute]
  public ActionResult SomeAction()
  {
      //whatever
  }
  </code></pre>
  
  <p>My custom overriden function never gets called...</p>
  
  <p>any ideas on this? or how to implement this differently?</p>