Condividi tramite


HubConnectionBuilderExtensions.WithServerTimeout Metodo

Definizione

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

Parametri

hubConnectionBuilder
IHubConnectionBuilder

Oggetto IHubConnectionBuilder da configurare.

timeout
TimeSpan

ServerTimeout per .HubConnection

Restituisce

Stessa istanza di IHubConnectionBuilder per il concatenamento.

Si applica a