RequestTimeoutsIApplicationBuilderExtensions.UseRequestTimeouts 方法

定义

为应用程序启用请求超时。

默认情况下不配置超时。 必须在 、RequestTimeoutAttribute终结点上的 中配置它们,或使用 WithRequestTimeout 路由扩展进行配置RequestTimeoutOptions

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRequestTimeouts (this Microsoft.AspNetCore.Builder.IApplicationBuilder builder);
static member UseRequestTimeouts : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseRequestTimeouts (builder As IApplicationBuilder) As IApplicationBuilder

参数

返回

适用于