Share via


HubConnectionBuilderExtensions.WithServerTimeout Méthode

Définition

Configure ServerTimeout pour .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

Paramètres

hubConnectionBuilder
IHubConnectionBuilder

IHubConnectionBuilder à configurer.

timeout
TimeSpan

ServerTimeout pour .HubConnection

Retours

La même instance du IHubConnectionBuilder pour le chaînage.

S’applique à