title: How to get custom attributes for a controller in asp.net core rc2
body: <p>I have created a custom attribute :</p>
  
  <pre><code>[AttributeUsage(AttributeTargets.Method| AttributeTargets.Class)]
  public class ActionAttribute : ActionFilterAttribute
  {
      public int Id { get; set; }
      public string Work { get; set; }
  }
  </code></pre>
  
  <p>my controller :</p>
  
  <pre><code>[Area("Administrator")]
  [Action(Id = 100, Work = "Test")]
  public class HomeController : Controller
  {
      public IActionResult Index()
      {
          return View();
      }
  }
  </code></pre>
  
  <p>my code : i use reflection to find all Controllers in the current assembly</p>
  
  <pre><code> Assembly.GetEntryAssembly()
           .GetTypes()
           .AsEnumerable()
           .Where(type =&gt; typeof(Controller).IsAssignableFrom(type))
           .ToList()
           .ForEach(d =&gt;
           {
               // how to get ActionAttribute ?
           });
  </code></pre>
  
  <p>is it possible to read all the <code>ActionAttribute</code> pragmatically? </p>