3 implementations of OnRejected
Microsoft.AspNetCore.RateLimiting (1)
DefaultRateLimiterPolicy.cs (1)
20
public Func<OnRejectedContext, CancellationToken, ValueTask>?
OnRejected
=> _onRejected;
Microsoft.AspNetCore.RateLimiting.Tests (1)
TestRateLimiterPolicy.cs (1)
26
public Func<OnRejectedContext, CancellationToken, ValueTask>
OnRejected
{ get => _onRejected; }
RateLimitingSample (1)
SampleRateLimiterPolicy.cs (1)
23
public Func<OnRejectedContext, CancellationToken, ValueTask>?
OnRejected
{ get => _onRejected; }
3 references to OnRejected
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
));