Condividi tramite


HubConnectionBuilderExtensions.WithKeepAliveInterval Metodo

Definizione

Configura KeepAliveInterval per .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

Parametri

hubConnectionBuilder
IHubConnectionBuilder

Oggetto IHubConnectionBuilder da configurare.

interval
TimeSpan

KeepAliveInterval per .HubConnection

Restituisce

Stessa istanza di IHubConnectionBuilder per il concatenamento.

Si applica a