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

Commit b20f09c

Browse files
committed
Update README.md
1 parent 388501f commit b20f09c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ can make to a Web API based on IP address, client API key and request route.
66
WebApiThrottle package is available on NuGet at [nuget.org/packages/WebApiThrottle](https://www.nuget.org/packages/WebApiThrottle/).
77

88
Web API throttling can be configured using the built-in ThrottlePolicy. You can set multiple limits
9-
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.
9+
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.
1010
You can define these limits to address all requests made to an API or you can scope the limits to each API route.
1111

1212
###Global throttling based on IP
@@ -21,7 +21,7 @@ public static class WebApiConfig
2121
{
2222
config.MessageHandlers.Add(new ThrottlingHandler()
2323
{
24-
Policy = new ThrottlePolicy(perSecond: 1, perMinute: 20, perHour: 200, perDay: 1500)
24+
Policy = new ThrottlePolicy(perSecond: 1, perMinute: 20, perHour: 200, perDay: 1500, perWeek: 3000)
2525
{
2626
IpThrottling = true
2727
},

0 commit comments

Comments
 (0)