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 实例。

适用于