Method ConfigureClientLimits
ConfigureClientLimits(RateLimiterOptions, Action<ClientRateLimitOptions>)
Adds a configuration that applies to the per-client limits that are added to the options after it (see AddClientFixedWindowLimiter(RateLimiterOptions, string, Action<ClientRateLimitOptions>) and SetClientFixedWindowGlobalLimiter(RateLimiterOptions, Action<ClientRateLimitOptions>)), before the configuration of each limit. Several configurations run in the order they are added.
Declaration
public static RateLimiterOptions ConfigureClientLimits(this RateLimiterOptions options, Action<ClientRateLimitOptions> configure)
Parameters
| Type | Name | Description |
|---|---|---|
| RateLimiterOptions | options | The rate limiter options. |
| Action<ClientRateLimitOptions> | configure | An action to configure the options of every limit, such as binding them from a configuration section. |
Returns
| Type | Description |
|---|---|
| RateLimiterOptions |