HubConnectionBuilderExtensions Class
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.
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. |