Freigeben über


HubConnectionBuilderExtensions.WithKeepAliveInterval Methode

Definition

Konfiguriert KeepAliveInterval für .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

Parameter

hubConnectionBuilder
IHubConnectionBuilder

Die zu konfigurierende IHubConnectionBuilder-Schnittstelle.

interval
TimeSpan

KeepAliveInterval für .HubConnection

Gibt zurück

Die gleiche Instanz der IHubConnectionBuilder-Schnittstelle für die Verkettung.

Gilt für: