RateLimiterApplicationBuilderExtensions.UseRateLimiter 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
UseRateLimiter(IApplicationBuilder) |
为应用程序启用速率限制。 |
UseRateLimiter(IApplicationBuilder, RateLimiterOptions) |
为应用程序启用速率限制。 |
UseRateLimiter(IApplicationBuilder)
为应用程序启用速率限制。
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRateLimiter (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseRateLimiter : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseRateLimiter (app As IApplicationBuilder) As IApplicationBuilder
参数
返回
适用于
UseRateLimiter(IApplicationBuilder, RateLimiterOptions)
为应用程序启用速率限制。
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRateLimiter (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.RateLimiting.RateLimiterOptions options);
static member UseRateLimiter : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.RateLimiting.RateLimiterOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseRateLimiter (app As IApplicationBuilder, options As RateLimiterOptions) As IApplicationBuilder
参数
- options
- RateLimiterOptions