HubConnectionBuilderExtensions.WithKeepAliveInterval 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 KeepAliveInterval for the HubConnection.
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithKeepAliveInterval (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, TimeSpan interval);
static member WithKeepAliveInterval : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * TimeSpan -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithKeepAliveInterval (hubConnectionBuilder As IHubConnectionBuilder, interval As TimeSpan) As IHubConnectionBuilder
Parameters
- hubConnectionBuilder
- IHubConnectionBuilder
The IHubConnectionBuilder to configure.
- interval
- TimeSpan
KeepAliveInterval for the HubConnection.
Returns
The same instance of the IHubConnectionBuilder for chaining.