Compartir a través de


HubConnectionBuilderExtensions.WithKeepAliveInterval Método

Definición

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

El objeto IHubConnectionBuilder que se va a configurar.

interval
TimeSpan

KeepAliveInterval para HubConnection.

Devoluciones

La misma instancia de IHubConnectionBuilder para el encadenamiento.

Se aplica a