Share via


IQueuePolicy Interface

Definition

Queueing policies, meant to be used with the ConcurrencyLimiterMiddleware.

public interface class IQueuePolicy
public interface IQueuePolicy
type IQueuePolicy = interface
Public Interface IQueuePolicy

Methods

OnExit()

Called after successful requests have been returned from the server. Does NOT get called for rejected requests.

TryEnterAsync()

Called for every incoming request. When it returns 'true' the request procedes to the server. When it returns 'false' the request is rejected immediately.

Applies to