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