Share via


HubConnectionBuilderExtensions.WithServerTimeout Method

Definition

Configures ServerTimeout for the 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

Parameters

hubConnectionBuilder
IHubConnectionBuilder

The IHubConnectionBuilder to configure.

timeout
TimeSpan

ServerTimeout for the HubConnection.

Returns

The same instance of the IHubConnectionBuilder for chaining.

Applies to