Compartilhar via


RateLimiterServiceCollectionExtensions.AddRateLimiter Método

Definição

Sobrecargas

AddRateLimiter(IServiceCollection)

Adicione serviços de limitação de taxa e configure as opções relacionadas.

AddRateLimiter(IServiceCollection, Action<RateLimiterOptions>)

Adicione serviços de limitação de taxa e configure as opções relacionadas.

AddRateLimiter(IServiceCollection)

Adicione serviços de limitação de taxa e configure as opções 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

O IServiceCollection para adicionar serviços.

Retornos

Aplica-se a

AddRateLimiter(IServiceCollection, Action<RateLimiterOptions>)

Origem:
RateLimiterServiceCollectionExtensions.cs

Adicione serviços de limitação de taxa e configure as opções 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

O IServiceCollection para adicionar serviços.

configureOptions
Action<RateLimiterOptions>

Um delegado para configurar o RateLimiterOptions.

Retornos

Aplica-se a