HubConnectionBuilderHttpExtensions.WithStatefulReconnect 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 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 執行個體。