4 references to ConvertPartitioner
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));