title: How to throttle requests in a Web Api?
body: <p>I'm trying to implement request throttling via the following: </p>
  
  <p><a href="https://stackoverflow.com/questions/33969/best-way-to-implement-request-throttling-in-asp-net-mvc">Best way to implement request throttling in ASP.NET MVC?</a></p>
  
  <p>I've pulled that code into my solution and decorated an API controller endpoint with the attribute: </p>
  
  <pre><code>[Route("api/dothis/{id}")]
  [AcceptVerbs("POST")]
  [Throttle(Name = "TestThrottle", Message = "You must wait {n} seconds before accessing this url again.", Seconds = 5)]
  [Authorize]
  public HttpResponseMessage DoThis(int id) {...}
  </code></pre>
  
  <p>This compiles but the attribute's code doesn't get hit, and the throttling doesn't work.  I don't get any errors though.  What am I missing?</p>