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

Add SuspendTime in ThrottlePolicy to block request for additional seconds after rate limit exceeded#66

Open
adamriyadi wants to merge 2 commits intostefanprodan:masterfrom
adamriyadi:master
Open

Add SuspendTime in ThrottlePolicy to block request for additional seconds after rate limit exceeded#66
adamriyadi wants to merge 2 commits intostefanprodan:masterfrom
adamriyadi:master

Conversation

@adamriyadi
Copy link

Add SuspendTime in ThrottlePolicy to block request for additional seconds after rate limit exceeded

Usage :

public static void Register(HttpConfiguration config)
{
config.MessageHandlers.Add(new ThrottlingHandler()
{
Policy = new ThrottlePolicy(perSecond: 1, perMinute: 20, perHour: 200, perDay: 1500, perWeek: 3000)
{
IpThrottling = true,
SuspendTime = 300
},
Repository = new CacheRepository()
});
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant