Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Jan 26, 2014
1 parent 388501f commit b20f09c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
},
Expand Down

0 comments on commit b20f09c

Please sign in to comment.