Udostępnij za pośrednictwem


HubConnectionBuilderExtensions.WithKeepAliveInterval Metoda

Definicja

Konfiguruje element KeepAliveInterval dla polecenia 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

Parametry

hubConnectionBuilder
IHubConnectionBuilder

Element do skonfigurowania IHubConnectionBuilder .

interval
TimeSpan

KeepAliveInterval dla .HubConnection

Zwraca

To samo wystąpienie IHubConnectionBuilder elementu do tworzenia łańcuchów.

Dotyczy