3 implementations of GetPartition
Microsoft.AspNetCore.RateLimiting (1)
DefaultRateLimiterPolicy.cs (1)
22
public RateLimitPartition<DefaultKeyType>
GetPartition
(HttpContext httpContext)
Microsoft.AspNetCore.RateLimiting.Tests (1)
TestRateLimiterPolicy.cs (1)
28
public RateLimitPartition<string>
GetPartition
(HttpContext httpContext)
RateLimitingSample (1)
SampleRateLimiterPolicy.cs (1)
26
public RateLimitPartition<string>
GetPartition
(HttpContext httpContext)
3 references to GetPartition
Microsoft.AspNetCore.RateLimiting (3)
RateLimiterEndpointConventionBuilderExtensions.cs (1)
45
endpointBuilder.Metadata.Add(new EnableRateLimitingAttribute(new DefaultRateLimiterPolicy(RateLimiterOptions.ConvertPartitioner<TPartitionKey>(null, policy.
GetPartition
), policy.OnRejected)));
RateLimiterOptions.cs (2)
79
return new DefaultRateLimiterPolicy(ConvertPartitioner<TPartitionKey>(policyName, instance.
GetPartition
), instance.OnRejected);
103
PolicyMap.Add(policyName, new DefaultRateLimiterPolicy(ConvertPartitioner<TPartitionKey>(policyName, policy.
GetPartition
), policy.OnRejected));