Skip to main content

AdaptativeLimiterOptions.UsePriorityResolver method (1 of 2)

Sets a custom priority resolver function.

public AdaptativeLimiterOptions UsePriorityResolver(
Func<HttpContext, Task<Priority>> priorityResolverFunc)
parameterdescription
priorityResolverFuncDelegate to resolver the request priority.

Return Value

AdaptativeLimiterOptions

See Also


AdaptativeLimiterOptions.UsePriorityResolver method (2 of 2)

Sets a custom priority resolver instance.

public AdaptativeLimiterOptions UsePriorityResolver(IPriorityResolver priorityResolver)
parameterdescription
priorityResolverPriority resolver instance.

Return Value

AdaptativeLimiterOptions

See Also