Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 456 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 456 Bytes

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.