3 instantiations of DisableRateLimitingAttribute
Microsoft.AspNetCore.RateLimiting (1)
DisableRateLimitingAttribute.cs (1)
15internal static DisableRateLimitingAttribute Instance { get; } = new DisableRateLimitingAttribute();
Microsoft.AspNetCore.RateLimiting.Tests (2)
RateLimitingMiddlewareTests.cs (2)
537context.SetEndpoint(new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new EnableRateLimitingAttribute(name), new DisableRateLimitingAttribute()), "Test endpoint")); 545context.SetEndpoint(new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new DisableRateLimitingAttribute(), new EnableRateLimitingAttribute(name)), "Test endpoint"));
5 references to DisableRateLimitingAttribute
Microsoft.AspNetCore.RateLimiting (3)
DisableRateLimitingAttribute.cs (1)
15internal static DisableRateLimitingAttribute Instance { get; } = new DisableRateLimitingAttribute();
RateLimiterEndpointConventionBuilderExtensions.cs (1)
62endpointBuilder.Metadata.Add(DisableRateLimitingAttribute.Instance);
RateLimitingMiddleware.cs (1)
69if (endpoint?.Metadata.GetMetadata<DisableRateLimitingAttribute>() is not null)
Microsoft.AspNetCore.RateLimiting.Tests (2)
RateLimiterEndpointConventionBuilderExtensionsTests.cs (2)
73var metadata = endpoint.Metadata.GetMetadata<DisableRateLimitingAttribute>();