HubConnectionBuilderExtensions.WithServerTimeout Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.