次の方法で共有


HubConnectionBuilderExtensions.WithKeepAliveInterval メソッド

定義

の KeepAliveInterval を構成します HubConnection

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

パラメーター

hubConnectionBuilder
IHubConnectionBuilder

構成する IHubConnectionBuilder

interval
TimeSpan

HubConnectionKeepAliveInterval

戻り値

チェーン用の IHubConnectionBuilder の同じインスタンス。

適用対象