From b20f09c637bc43761fbae9b18c6e12ba94eb9689 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Sun, 26 Jan 2014 13:10:23 +0200 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0d53416..b20be9b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ can make to a Web API based on IP address, client API key and request route. WebApiThrottle package is available on NuGet at [nuget.org/packages/WebApiThrottle](https://www.nuget.org/packages/WebApiThrottle/). Web API throttling can be configured using the built-in ThrottlePolicy. You can set multiple limits -for different scenarios like allowing an IP or Client to make a maximum number of calls per second, per minute, per hour or even per day. +for different scenarios like allowing an IP or Client to make a maximum number of calls per second, per minute, per hour per day or even per week. You can define these limits to address all requests made to an API or you can scope the limits to each API route. ###Global throttling based on IP @@ -21,7 +21,7 @@ public static class WebApiConfig { config.MessageHandlers.Add(new ThrottlingHandler() { - Policy = new ThrottlePolicy(perSecond: 1, perMinute: 20, perHour: 200, perDay: 1500) + Policy = new ThrottlePolicy(perSecond: 1, perMinute: 20, perHour: 200, perDay: 1500, perWeek: 3000) { IpThrottling = true },