Share via


HubConnectionBuilderExtensions Class

Definition

Extension methods for IHubConnectionBuilder.

public ref class HubConnectionBuilderExtensions abstract sealed
public static class HubConnectionBuilderExtensions
type HubConnectionBuilderExtensions = class
Public Module HubConnectionBuilderExtensions
Inheritance
HubConnectionBuilderExtensions

Methods

ConfigureLogging(IHubConnectionBuilder, Action<ILoggingBuilder>)

Adds a delegate for configuring the provided ILoggingBuilder. This may be called multiple times.

WithAutomaticReconnect(IHubConnectionBuilder, IRetryPolicy)

Configures the HubConnection to automatically attempt to reconnect if the connection is lost.

WithAutomaticReconnect(IHubConnectionBuilder, TimeSpan[])

Configures the HubConnection to automatically attempt to reconnect if the connection is lost.

WithAutomaticReconnect(IHubConnectionBuilder)

Configures the HubConnection to automatically attempt to reconnect if the connection is lost. The client will wait the default 0, 2, 10 and 30 seconds respectively before trying up to four reconnect attempts.

WithKeepAliveInterval(IHubConnectionBuilder, TimeSpan)

Configures KeepAliveInterval for the HubConnection.

WithServerTimeout(IHubConnectionBuilder, TimeSpan)

Configures ServerTimeout for the HubConnection.

Applies to