Compartir a través de


HubConnectionBuilderExtensions.WithServerTimeout Método

Definición

Configura ServerTimeout para .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

Parámetros

hubConnectionBuilder
IHubConnectionBuilder

El objeto IHubConnectionBuilder que se va a configurar.

timeout
TimeSpan

ServerTimeout para .HubConnection

Devoluciones

La misma instancia de IHubConnectionBuilder para el encadenamiento.

Se aplica a