1 implementation of IRateLimiterPolicy
Microsoft.AspNetCore.RateLimiting (1)
DefaultRateLimiterPolicy.cs (1)
9internal sealed class DefaultRateLimiterPolicy : IRateLimiterPolicy<DefaultKeyType>
7 references to IRateLimiterPolicy
Microsoft.AspNetCore.RateLimiting (7)
RateLimiterEndpointConventionBuilderExtensions.cs (1)
38public static TBuilder RequireRateLimiting<TBuilder, TPartitionKey>(this TBuilder builder, IRateLimiterPolicy<TPartitionKey> policy) where TBuilder : IEndpointConventionBuilder
RateLimiterOptions.cs (6)
67public RateLimiterOptions AddPolicy<TPartitionKey, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TPolicy>(string policyName) where TPolicy : IRateLimiterPolicy<TPartitionKey> 78var 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> 92public RateLimiterOptions AddPolicy<TPartitionKey>(string policyName, IRateLimiterPolicy<TPartitionKey> policy)