共用方式為


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

HubConnection ServerTimeout。

傳回

用於鏈結的相同 IHubConnectionBuilder 執行個體。

適用於