Sdílet prostřednictvím


HubConnectionBuilderExtensions.WithServerTimeout Metoda

Definice

Nakonfiguruje ServerTimeout pro HubConnection.

public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithServerTimeout (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, TimeSpan timeout);
static member WithServerTimeout : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * TimeSpan -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithServerTimeout (hubConnectionBuilder As IHubConnectionBuilder, timeout As TimeSpan) As IHubConnectionBuilder

Parametry

hubConnectionBuilder
IHubConnectionBuilder

Konfigurace IHubConnectionBuilder .

timeout
TimeSpan

ServerTimeout pro HubConnection.

Návraty

Stejná instance IHubConnectionBuilder pro řetězení.

Platí pro