6 references to PolicyMap
Microsoft.AspNetCore.RateLimiting (6)
RateLimiterOptions.cs (5)
53
if (
PolicyMap
.ContainsKey(policyName) || UnactivatedPolicyMap.ContainsKey(policyName))
58
PolicyMap
.Add(policyName, new DefaultRateLimiterPolicy(ConvertPartitioner<TPartitionKey>(policyName, partitioner), null));
71
if (
PolicyMap
.ContainsKey(policyName) || UnactivatedPolicyMap.ContainsKey(policyName))
96
if (
PolicyMap
.ContainsKey(policyName) || UnactivatedPolicyMap.ContainsKey(policyName))
103
PolicyMap
.Add(policyName, new DefaultRateLimiterPolicy(ConvertPartitioner<TPartitionKey>(policyName, policy.GetPartition), policy.OnRejected));
RateLimitingMiddleware.cs (1)
47
_policyMap = new Dictionary<string, DefaultRateLimiterPolicy>(options.Value.
PolicyMap
);