2 instantiations of EnableRateLimitingAttribute
Microsoft.AspNetCore.RateLimiting (2)
RateLimiterEndpointConventionBuilderExtensions.cs (2)
26endpointBuilder.Metadata.Add(new EnableRateLimitingAttribute(policyName)); 45endpointBuilder.Metadata.Add(new EnableRateLimitingAttribute(new DefaultRateLimiterPolicy(RateLimiterOptions.ConvertPartitioner<TPartitionKey>(null, policy.GetPartition), policy.OnRejected)));
10 references to EnableRateLimitingAttribute
Microsoft.AspNetCore.RateLimiting (10)
EnableRateLimitingAttribute.cs (1)
17/// Creates a new instance of <see cref="EnableRateLimitingAttribute"/> using the specified policy.
RateLimiterOptionsExtensions.cs (4)
17/// or via the <see cref="EnableRateLimitingAttribute"/>. 46/// or via the <see cref="EnableRateLimitingAttribute"/>. 75/// or via the <see cref="EnableRateLimitingAttribute"/>. 104/// or via the <see cref="EnableRateLimitingAttribute"/>.
RateLimitingMiddleware.cs (5)
73var enableRateLimitingAttribute = endpoint?.Metadata.GetMetadata<EnableRateLimitingAttribute>(); 83private async Task InvokeInternal(HttpContext context, EnableRateLimitingAttribute? enableRateLimitingAttribute) 258var enableRateLimitingAttribute = context.GetEndpoint()?.Metadata.GetMetadata<EnableRateLimitingAttribute>();