Поделиться через


RateLimiterServiceCollectionExtensions.AddRateLimiter Метод

Определение

Добавьте службы ограничения скорости и настройте связанные параметры.

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

Параметры

services
IServiceCollection

Для IServiceCollection добавления служб.

configureOptions
Action<RateLimiterOptions>

Делегат для настройки RateLimiterOptions.

Возвращаемое значение

Применяется к