Compartir a través de


RateLimiterServiceCollectionExtensions.AddRateLimiter Método

Definición

Sobrecargas

AddRateLimiter(IServiceCollection)

Agregue servicios de limitación de velocidad y configure las opciones relacionadas.

AddRateLimiter(IServiceCollection, Action<RateLimiterOptions>)

Agregue servicios de limitación de velocidad y configure las opciones relacionadas.

AddRateLimiter(IServiceCollection)

Agregue servicios de limitación de velocidad y configure las opciones relacionadas.

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

Parámetros

services
IServiceCollection

El IServiceCollection para agregar servicios.

Devoluciones

Se aplica a

AddRateLimiter(IServiceCollection, Action<RateLimiterOptions>)

Source:
RateLimiterServiceCollectionExtensions.cs

Agregue servicios de limitación de velocidad y configure las opciones relacionadas.

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

Parámetros

services
IServiceCollection

El IServiceCollection para agregar servicios.

configureOptions
Action<RateLimiterOptions>

Delegado para configurar el RateLimiterOptions.

Devoluciones

Se aplica a