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