Partilhar via


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

Definição

Obtém o RateLimitPartition<TKey> que se aplica ao determinado 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)

Parâmetros

httpContext
HttpContext

O HttpContext para o qual obter a partição.

Retornos

RateLimitPartition<TPartitionKey>

Aplica-se a