Partager via


IRateLimiterPolicy<TPartitionKey>.GetPartition(HttpContext) Méthode

Définition

Obtient le RateLimitPartition<TKey> qui s’applique au donné HttpContext.

public System.Threading.RateLimiting.RateLimitPartition<TPartitionKey> GetPartition (Microsoft.AspNetCore.Http.HttpContext httpContext);
abstract member GetPartition : Microsoft.AspNetCore.Http.HttpContext -> System.Threading.RateLimiting.RateLimitPartition<'PartitionKey>
Public Function GetPartition (httpContext As HttpContext) As RateLimitPartition(Of TPartitionKey)

Paramètres

httpContext
HttpContext

HttpContext pour obtenir la partition.

Retours

RateLimitPartition<TPartitionKey>

S’applique à