Compartilhar via


HubConnectionBuilderExtensions.WithKeepAliveInterval Método

Definição

Configura KeepAliveInterval para o 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

Parâmetros

hubConnectionBuilder
IHubConnectionBuilder

O IHubConnectionBuilder a ser configurado.

interval
TimeSpan

KeepAliveInterval para o HubConnection.

Retornos

A mesma instância do IHubConnectionBuilder para encadeamento.

Aplica-se a