ASP.NET Core rate limiting middleware
Remove end-of-support target frameworks:
This will work on NET 6.0+
NET 6 support: https://github.com/stefanprodan/AspNetCoreRateLimit/pull/285 Regex match fixes: https://github.com/stefanprodan/AspNetCoreRateLimit/pull/263 Quota response fixes: https://github.com/stefanprodan/AspNetCoreRateLimit/pull/244 Remove unused counter store dependencies Fix Redis strategy (AspNetCoreRateLimit.Redis 1.0.1)
{
"Ip": "84.247.85.232",
"Rules": [{
"Endpoint": ".+",
"Period": "1m",
"Limit": 1,
"MonitorMode": true
}]
}
Bug fixes:
Features:
How to inject the [processing strategy] (https://github.com/stefanprodan/AspNetCoreRateLimit/blob/master/src/AspNetCoreRateLimit/StartupExtensions.cs) if you're not using the default Startup extensions:
services.AddSingleton<IProcessingStrategy, AsyncKeyLockProcessingStrategy>();
// services.AddSingleton<IProcessingStrategy, RedisProcessingStrategy>();
Support net5.0 target framework
Fix #137
Add Async suffix to RequestBlockedBehaviorAsync
Fix #155
Target both netstandard2.0 & netcoreapp3.1: https://github.com/stefanprodan/AspNetCoreRateLimit/commit/0897e104e9ef6968c3c7be8c321e9b378bed933d
Change log: