Skip to content

Commit afadf21

Browse files
authored
Update aspnetcore/performance/rate-limit.md
1 parent 34eef78 commit afadf21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aspnetcore/performance/rate-limit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ app.MapRazorComponents<App>()
147147

148148
To set a policy for a single routable Razor component or a folder of components via an `_Imports.razor` file, the [`[EnableRateLimiting]` attribute](xref:Microsoft.AspNetCore.RateLimiting.EnableRateLimitingAttribute) is applied with the policy name. In the following example, the rate limiting policy named "`override`" is applied. The policy replaces any policies currently applied to the endpoint. The global limiter still runs on the endpoint with this attribute applied.
149149

150-
```blazor
150+
```razor
151151
@page "/counter"
152152
@using Microsoft.AspNetCore.RateLimiting
153153
@attribute [EnableRateLimiting("override")]

0 commit comments

Comments
 (0)