Share via


ConnectionTimeoutExtensions.UseConnectionTimeout(ListenOptions) 方法

定义

添加连接超时中间件。

public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseConnectionTimeout (this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions);
static member UseConnectionTimeout : Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions -> Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions
<Extension()>
Public Function UseConnectionTimeout (listenOptions As ListenOptions) As ListenOptions

参数

listenOptions
ListenOptions

要使用的服务器选项。

返回

listenOptions 的值。

适用于