Sdílet prostřednictvím


IRateLimiterPolicy<TPartitionKey> Rozhraní

Definice

Rozhraní, které se používá k reprezentaci zásady RateLimiter.

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

Parametry typu

TPartitionKey

Vlastnosti

OnRejected

Získá objekt Func<T1,T2,TResult> , který zpracovává požadavky odmítnuté tímto middlewarem.

Metody

GetPartition(HttpContext)

Získá , RateLimitPartition<TKey> která se vztahuje na danou HttpContext.

Platí pro