Dela via


IRateLimiterPolicy<TPartitionKey> Interface

Definition

An interface which is used to represent a RateLimiter policy.

public interface IRateLimiterPolicy<TPartitionKey>
type IRateLimiterPolicy<'PartitionKey> = interface
Public Interface IRateLimiterPolicy(Of TPartitionKey)

Type Parameters

TPartitionKey

Properties

OnRejected

Gets the Func<T1,T2,TResult> that handles requests rejected by this middleware.

Methods

GetPartition(HttpContext)

Gets the RateLimitPartition<TKey> that applies to the given HttpContext.

Applies to