-
Notifications
You must be signed in to change notification settings - Fork 25.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rate limiting middleware #26515
Comments
@Kahbazi or @martincostello are you interested in writing the sample code for rate limiting middleware? |
@Rick-Anderson I have not write any docs yet, but I would like to give it a try. I'm not familiar with this repo. Where should I start? Are there any specifics samples you have in mind? |
@Kahbazi I'll handle the document. It would be great if you could write sample code showing how to use System.Threading.RateLimiting. I have a basic sample here but The sample code is ASP.NET Core focused, the .NET team will write samples and docs for .NET. |
@Rick-Anderson I created a gist of how to use RateLimiting, but it's basically what you already have in the sample. The sample is limiting the endpoints by IP and by username. |
@Kahbazi take a look at the first sample under RateLimiting middleware. That's what I copied here but MyCustomLimiter : RateLimiter isn't implemented.
For the first sample we provide,
A custom implementation of Create a PR with the sample code here. |
System.Threading.RateLimiting will be documented in dotnet/docs#30426 and this article will point to that. This article will document the Microsoft.AspNetCore.RateLimiting NuGet package.
@BrennanConroy do you have any ASP.NET Core samples I can start with?
The text was updated successfully, but these errors were encountered: