Share via


IRetryPolicy Interface

Definition

An abstraction that controls when the client attempts to reconnect and how many times it does so.

public interface class IRetryPolicy
public interface IRetryPolicy
type IRetryPolicy = interface
Public Interface IRetryPolicy

Methods

NextRetryDelay(RetryContext)

If passed to WithAutomaticReconnect(IHubConnectionBuilder, IRetryPolicy), this will be called after the transport loses a connection to determine if and for how long to wait before the next reconnect attempt.

Applies to