Udostępnij za pośrednictwem


HubConnectionBuilderExtensions.WithServerTimeout Metoda

Definicja

Konfiguruje wartość ServerTimeout dla elementu 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

Element do skonfigurowania IHubConnectionBuilder .

timeout
TimeSpan

ServerTimeout dla .HubConnection

Zwraca

To samo wystąpienie elementu IHubConnectionBuilder do tworzenia łańcucha.

Dotyczy