HubConnectionBuilderExtensions.WithServerTimeout Método

Definição

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

O IHubConnectionBuilder a ser configurado.

timeout
TimeSpan

ServerTimeout para o HubConnection.

Retornos

A mesma instância do IHubConnectionBuilder para encadeamento.

Aplica-se a