7 references to EnableRateLimitingAttribute
Microsoft.AspNetCore.RateLimiting (1)
RateLimiterEndpointConventionBuilderExtensions.cs (1)
26
endpointBuilder.Metadata.Add(new
EnableRateLimitingAttribute
(policyName));
Microsoft.AspNetCore.RateLimiting.Tests (6)
RateLimitingMetricsTests.cs (2)
197
routeEndpointBuilder.Metadata.Add(new
EnableRateLimitingAttribute
("concurrencyPolicy"));
272
routeEndpointBuilder.Metadata.Add(new
EnableRateLimitingAttribute
("concurrencyPolicy"));
RateLimitingMiddlewareTests.cs (4)
497
var endpoint1 = new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new
EnableRateLimitingAttribute
(endpointName1)), "Test endpoint 1");
498
var endpoint2 = new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new
EnableRateLimitingAttribute
(endpointName2)), "Test endpoint 2");
537
context.SetEndpoint(new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new
EnableRateLimitingAttribute
(name), new DisableRateLimitingAttribute()), "Test endpoint"));
545
context.SetEndpoint(new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new DisableRateLimitingAttribute(), new
EnableRateLimitingAttribute
(name)), "Test endpoint"));