Skip to content

Commit 46ff3cd

Browse files
Update aspnetcore/performance/rate-limit.md
Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com>
1 parent dfe9712 commit 46ff3cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aspnetcore/performance/rate-limit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ To set rate limiting to all pages, [`RequireRateLimiting(Policy)`](/dotnet/api/
150150
``` csharp
151151
app.MapRazorComponents<App>()
152152
.AddInteractiveServerRenderMode()
153-
.RequireRateLimiting("MyPagePolicy");
153+
.RequireRateLimiting("Policy");
154154
```
155155

156156
To set a policy for a single Razor component, the [`[EnableRateLimiting]` attribute](xref:Microsoft.AspNetCore.RateLimiting.EnableRateLimitingAttribute) is applied to the component with an optional policy name:

0 commit comments

Comments
 (0)