1 implementation of IRateLimiterPolicy
Microsoft.AspNetCore.RateLimiting (1)
DefaultRateLimiterPolicy.cs (1)
9
internal sealed class DefaultRateLimiterPolicy :
IRateLimiterPolicy
<DefaultKeyType>
7 references to IRateLimiterPolicy
Microsoft.AspNetCore.RateLimiting (7)
RateLimiterEndpointConventionBuilderExtensions.cs (1)
38
public static TBuilder RequireRateLimiting<TBuilder, TPartitionKey>(this TBuilder builder,
IRateLimiterPolicy
<TPartitionKey> policy) where TBuilder : IEndpointConventionBuilder
RateLimiterOptions.cs (6)
67
public RateLimiterOptions AddPolicy<TPartitionKey, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TPolicy>(string policyName) where TPolicy :
IRateLimiterPolicy
<TPartitionKey>
78
var
instance = (
IRateLimiterPolicy
<TPartitionKey>)ActivatorUtilities.CreateInstance(serviceProvider, typeof(TPolicy));
90
/// <param name="policyName">The name to be associated with the given <see cref="
IRateLimiterPolicy
{TPartitionKey}"/>.</param>
91
/// <param name="policy">The <see cref="
IRateLimiterPolicy
{TPartitionKey}"/> to be applied.</param>
92
public RateLimiterOptions AddPolicy<TPartitionKey>(string policyName,
IRateLimiterPolicy
<TPartitionKey> policy)