stefanprodan / AspNetCoreRateLimit

ASP.NET Core rate limiting middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rate limiting is not working for asp.net core with kestrel web server

diwakarrjit opened this issue · comments

Rate limiting is not working for asp.net core with kestrel web server

应该是在.net7以上不起作用吧

var host = builder.Build();
using (var scope = host.Services.CreateScope())
{
await scope.ServiceProvider.GetRequiredService < IIpPolicyStore > ().SeedAsync();
}
host.UseRouting();
host.UseIpRateLimiting();