9 references to RequireRateLimiting
Microsoft.AspNetCore.RateLimiting (4)
RateLimiterOptionsExtensions.cs (4)
16
/// The limiter can be added to an endpoint via <see cref="RateLimiterEndpointConventionBuilderExtensions.
RequireRateLimiting
{TBuilder}(TBuilder, string)"/>,
45
/// The limiter can be added to an endpoint via <see cref="RateLimiterEndpointConventionBuilderExtensions.
RequireRateLimiting
{TBuilder}(TBuilder, string)"/>,
74
/// The limiter can be added to an endpoint via <see cref="RateLimiterEndpointConventionBuilderExtensions.
RequireRateLimiting
{TBuilder}(TBuilder, string)"/>,
103
/// The limiter can be added to an endpoint via <see cref="RateLimiterEndpointConventionBuilderExtensions.
RequireRateLimiting
{TBuilder}(TBuilder, string)"/>,
Microsoft.AspNetCore.RateLimiting.Tests (2)
RateLimiterEndpointConventionBuilderExtensionsTests.cs (1)
20
testConventionBuilder.
RequireRateLimiting
("TestPolicyName");
RateLimitingMiddlewareTests.cs (1)
636
testConventionBuilder.
RequireRateLimiting
(policy);
RateLimitingSample (3)
Program.cs (3)
53
app.MapGet("/", () => "Hello World!").
RequireRateLimiting
(helloName);
58
.
RequireRateLimiting
(todoName);
63
.
RequireRateLimiting
(completeName);