title: How to do dependency injection to Action Filter on ASP.NET Web API
body: <p>I really get stuck on the approach to do dependency injection into action filter of web api. I  have an action filter like this:</p>
  
  <pre><code>public class AuthorizationAttribute : ActionFilterAttribute
  {
      public IApiKeyRepository Repository { get; set; }
  
      private Guid GetApiKey(string customerKey)
      {
          return Repository.GetApiKey(customerKey);
      }
  
      public override void OnActionExecuting(HttpActionContext actionContext)
      {        
      }
  }
  </code></pre>
  
  <p>I would like to do property injection on the property Repository by using Windsor (but it does not matter which IoC container is used)</p>
  
  <p>I did come up to customize FilterProvider but it did not work out for me, does anyone have solution or running code on this? it will be much appreciated</p>