4 instantiations of DefaultRateLimiterPolicy
Microsoft.AspNetCore.RateLimiting (4)
RateLimiterEndpointConventionBuilderExtensions.cs (1)
45
endpointBuilder.Metadata.Add(new EnableRateLimitingAttribute(new
DefaultRateLimiterPolicy
(RateLimiterOptions.ConvertPartitioner<TPartitionKey>(null, policy.GetPartition), policy.OnRejected)));
RateLimiterOptions.cs (3)
58
PolicyMap.Add(policyName, new
DefaultRateLimiterPolicy
(ConvertPartitioner<TPartitionKey>(policyName, partitioner), null));
79
return new
DefaultRateLimiterPolicy
(ConvertPartitioner<TPartitionKey>(policyName, instance.GetPartition), instance.OnRejected);
103
PolicyMap.Add(policyName, new
DefaultRateLimiterPolicy
(ConvertPartitioner<TPartitionKey>(policyName, policy.GetPartition), policy.OnRejected));
11 references to DefaultRateLimiterPolicy
Microsoft.AspNetCore.RateLimiting (11)
EnableRateLimitingAttribute.cs (2)
27
internal EnableRateLimitingAttribute(
DefaultRateLimiterPolicy
policy)
40
internal
DefaultRateLimiterPolicy
? Policy { get; }
RateLimiterOptions.cs (5)
16
internal Dictionary<string,
DefaultRateLimiterPolicy
> PolicyMap { get; }
17
= new Dictionary<string,
DefaultRateLimiterPolicy
>(StringComparer.Ordinal);
19
internal Dictionary<string, Func<IServiceProvider,
DefaultRateLimiterPolicy
>> UnactivatedPolicyMap { get; }
20
= new Dictionary<string, Func<IServiceProvider,
DefaultRateLimiterPolicy
>>(StringComparer.Ordinal);
76
Func<IServiceProvider,
DefaultRateLimiterPolicy
> policyFunc = serviceProvider =>
RateLimitingMiddleware.cs (4)
24
private readonly Dictionary<string,
DefaultRateLimiterPolicy
> _policyMap;
47
_policyMap = new Dictionary<string,
DefaultRateLimiterPolicy
>(options.Value.PolicyMap);
128
DefaultRateLimiterPolicy
? policy;
257
DefaultRateLimiterPolicy
? policy;