Поделиться через


HubConnectionBuilderExtensions.WithServerTimeout Метод

Определение

Настраивает ServerTimeout для 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

Параметры

hubConnectionBuilder
IHubConnectionBuilder

IHubConnectionBuilder для настройки.

timeout
TimeSpan

ServerTimeout для HubConnection.

Возвращаемое значение

Тот же экземпляр IHubConnectionBuilder для построения цепочки.

Применяется к