Share via


RateLimiterServiceCollectionExtensions.AddRateLimiter Method

Definition

Overloads

AddRateLimiter(IServiceCollection)

Add rate limiting services and configure the related options.

AddRateLimiter(IServiceCollection, Action<RateLimiterOptions>)

Add rate limiting services and configure the related options.

AddRateLimiter(IServiceCollection)

Add rate limiting services and configure the related options.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRateLimiter (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddRateLimiter : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRateLimiter (services As IServiceCollection) As IServiceCollection

Parameters

services
IServiceCollection

The IServiceCollection for adding services.

Returns

Applies to

AddRateLimiter(IServiceCollection, Action<RateLimiterOptions>)

Source:
RateLimiterServiceCollectionExtensions.cs

Add rate limiting services and configure the related options.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRateLimiter (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.RateLimiting.RateLimiterOptions> configureOptions);
static member AddRateLimiter : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.RateLimiting.RateLimiterOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRateLimiter (services As IServiceCollection, configureOptions As Action(Of RateLimiterOptions)) As IServiceCollection

Parameters

services
IServiceCollection

The IServiceCollection for adding services.

configureOptions
Action<RateLimiterOptions>

A delegate to configure the RateLimiterOptions.

Returns

Applies to