Skip to content

This is a WebAPI rate limiting component,packed middleware,Easy to use, and adapt to a variety of environment expansion.

Notifications You must be signed in to change notification settings

sangxiaoyu/RateLimiting

Repository files navigation

RateLimiting component

I have packed middleware,you can register it to startup or service.

such as :

//config it
services.AddAIpRateLimiting(Configuration);

and then

app.UseMiddleware<RateLimitingMiddleware>(Array.Empty<object>());

finally,to add appsettings.json parameters that adapt you application scenarios

  "RateLimiting": {
    "Times": 5000
  },

That's all.If you have any questions, please commit an issue.

About

This is a WebAPI rate limiting component,packed middleware,Easy to use, and adapt to a variety of environment expansion.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages