IRateLimiterPolicy<TPartitionKey>.GetPartition(HttpContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>