Dela via


IRateLimiterPolicy<TPartitionKey>.GetPartition(HttpContext) Method

Definition

Gets the RateLimitPartition<TKey> that applies to the given 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)

Parameters

httpContext
HttpContext

The HttpContext to get the partition for.

Returns

RateLimitPartition<TPartitionKey>

Applies to