UniqueContextResolver Method
Definition
- Namespace
- Cuemon.AspNetCore.Mvc.Filters.Throttling
- Assemblies
- Cuemon.AspNetCore.Mvc.dll
UniqueContextResolver(HttpContext)
Resolves a unique context of the throttling middleware (eg. IP-address, Authorization header, etc.).
public abstract string UniqueContextResolver(HttpContext context)
Parameters
contextHttpContextThe HttpContext to extract a unique context from.
Returns
- string
A string that uniquely identifies the requester in need of throttling.