1 implementation of IRetryPolicy
Microsoft.AspNetCore.SignalR.Client.Core (1)
Internal\DefaultRetryPolicy.cs (1)
8
internal sealed class DefaultRetryPolicy :
IRetryPolicy
11 references to IRetryPolicy
Microsoft.AspNetCore.SignalR.Client.Core (11)
HubConnection.cs (3)
82
private readonly
IRetryPolicy
? _reconnectPolicy;
208
/// The <see cref="
IRetryPolicy
"/> that controls the timing and number of reconnect attempts.
214
public HubConnection(IConnectionFactory connectionFactory, IHubProtocol protocol, EndPoint endPoint, IServiceProvider serviceProvider, ILoggerFactory loggerFactory,
IRetryPolicy
reconnectPolicy)
HubConnection.Log.cs (2)
284
[LoggerMessage(76, LogLevel.Error, $"An exception was thrown from {nameof(
IRetryPolicy
)}.{nameof(
IRetryPolicy
.NextRetryDelay)}().", EventName = "ErrorDuringNextRetryDelay")]
HubConnectionBuilderExtensions.cs (4)
36
hubConnectionBuilder.Services.AddSingleton<
IRetryPolicy
>(new DefaultRetryPolicy());
51
hubConnectionBuilder.Services.AddSingleton<
IRetryPolicy
>(new DefaultRetryPolicy(reconnectDelays));
59
/// <param name="retryPolicy">An <see cref="
IRetryPolicy
"/> that controls the timing and number of reconnect attempts.</param>
61
public static IHubConnectionBuilder WithAutomaticReconnect(this IHubConnectionBuilder hubConnectionBuilder,
IRetryPolicy
retryPolicy)
IRetryPolicy.cs (1)
14
/// If passed to <see cref="HubConnectionBuilderExtensions.WithAutomaticReconnect(IHubConnectionBuilder,
IRetryPolicy
)"/>,
RetryContext.cs (1)
9
/// The context passed to <see cref="
IRetryPolicy
.NextRetryDelay(RetryContext)"/> to help the policy determine