Rate limiting is not working for asp.net core with kestrel web server
diwakarrjit opened this issue · comments
Diwakar Kumar commented
Rate limiting is not working for asp.net core with kestrel web server
字母搬运工 commented
应该是在.net7以上不起作用吧
BruceQiu1996 commented
var host = builder.Build();
using (var scope = host.Services.CreateScope())
{
await scope.ServiceProvider.GetRequiredService < IIpPolicyStore > ().SeedAsync();
}
host.UseRouting();
host.UseIpRateLimiting();