Поделиться через


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

KeepAliveInterval для HubConnection.

Возвращаемое значение

Тот же экземпляр IHubConnectionBuilder для построения цепочки.

Применяется к