Skip to content

Commit 5cc9a11

Browse files
Merge pull request #35092 from dotnet/rate/limit/4
Remove nuGet from Rate limiter
2 parents 1169403 + b649c96 commit 5cc9a11

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

aspnetcore/performance/rate-limit.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,7 @@ Implementing a commercial DDoS protection service in conjunction with rate limit
5252

5353
The following steps show how to use the rate limiting middleware in an ASP.NET Core app:
5454

55-
1. Install the `Microsoft.AspNetCore.RateLimiting` package.:
56-
57-
Add the `Microsoft.AspNetCore.RateLimiting` package to the project, via the NuGet Package Manager or the following command:
58-
59-
```sh
60-
dotnet add package Microsoft.AspNetCore.RateLimiting
61-
```
62-
63-
2. Configure rate limiting services.
55+
1. Configure rate limiting services.
6456

6557
In the `Program.cs` file, configure the rate limiting services by adding the appropriate rate limiting policies. Policies can either be defined as global or named polices. The following example permits 10 requests per minute by user (identity) or globally:
6658

@@ -101,7 +93,7 @@ The following steps show how to use the rate limiting middleware in an ASP.NET C
10193

10294
The global limiter applies to all endpoints automatically when it's configured via [options.GlobalLimiter](/dotnet/api/microsoft.aspnetcore.ratelimiting.ratelimiteroptions.globallimiter).
10395

104-
3. Enable rate limiting middleware
96+
2. Enable rate limiting middleware
10597

10698
In the `Program.cs` file, enable the rate limiting middleware by calling [UseRateLimiter](/dotnet/api/microsoft.aspnetcore.builder.ratelimiterapplicationbuilderextensions.useratelimiter):
10799

0 commit comments

Comments
 (0)