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

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