RateLimiterOptionsExtensions.AddFixedWindowLimiter 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.
Adds a new FixedWindowRateLimiter with the given FixedWindowRateLimiterOptions to the RateLimiterOptions.
public static Microsoft.AspNetCore.RateLimiting.RateLimiterOptions AddFixedWindowLimiter (this Microsoft.AspNetCore.RateLimiting.RateLimiterOptions options, string policyName, Action<System.Threading.RateLimiting.FixedWindowRateLimiterOptions> configureOptions);
static member AddFixedWindowLimiter : Microsoft.AspNetCore.RateLimiting.RateLimiterOptions * string * Action<System.Threading.RateLimiting.FixedWindowRateLimiterOptions> -> Microsoft.AspNetCore.RateLimiting.RateLimiterOptions
<Extension()>
Public Function AddFixedWindowLimiter (options As RateLimiterOptions, policyName As String, configureOptions As Action(Of FixedWindowRateLimiterOptions)) As RateLimiterOptions
Parameters
- options
- RateLimiterOptions
The RateLimiterOptions to add a limiter to.
- policyName
- String
The name that will be associated with the limiter.
- configureOptions
- Action<FixedWindowRateLimiterOptions>
A callback to configure the FixedWindowRateLimiterOptions to be used for the limiter.
Returns
This RateLimiterOptions.