HubConnectionBuilderExtensions.WithServerTimeout 方法

定义

HubConnection配置 ServerTimeout。

public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithServerTimeout (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, TimeSpan timeout);
static member WithServerTimeout : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * TimeSpan -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithServerTimeout (hubConnectionBuilder As IHubConnectionBuilder, timeout As TimeSpan) As IHubConnectionBuilder

参数

hubConnectionBuilder
IHubConnectionBuilder

要配置的 IHubConnectionBuilder

timeout
TimeSpan

HubConnectionServerTimeout。

返回

用于链接的相同 IHubConnectionBuilder 实例。

适用于