共用方式為


HubConnectionBuilderHttpExtensions.WithStatefulReconnect 方法

定義

HttpConnectionOptions 設定為與伺服器交涉具狀態重新連線。

public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithStatefulReconnect (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder);
static member WithStatefulReconnect : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithStatefulReconnect (hubConnectionBuilder As IHubConnectionBuilder) As IHubConnectionBuilder

參數

hubConnectionBuilder
IHubConnectionBuilder

要設定的 IHubConnectionBuilder

傳回

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

適用於