Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ThrottlingHandler
var throttlingHandler = new ThrottlingHandler(
new InMemoryThrottleStore(),
quota => 10,
TimeSpan.FromMinutes(1),
"Exceed the limit 10 requests per minute!");
config.MessageHandlers.Add(throttlingHandler);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment