1 implementation of IRetryPolicy
Microsoft.AspNetCore.SignalR.Client.Core (1)
Internal\DefaultRetryPolicy.cs (1)
8
internal sealed class DefaultRetryPolicy :
IRetryPolicy
24 references to IRetryPolicy
Microsoft.AspNetCore.SignalR.Client.Core (11)
HubConnection.cs (3)
82
private readonly
IRetryPolicy
? _reconnectPolicy;
202
/// The <see cref="
IRetryPolicy
"/> that controls the timing and number of reconnect attempts.
208
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
Microsoft.AspNetCore.SignalR.Client.Tests (13)
HubConnectionTests.cs (1)
845
new Mock<IServiceProvider>().Object, new Mock<ILoggerFactory>().Object, new Mock<
IRetryPolicy
>().Object);
HubConnectionTests.Reconnect.cs (12)
116
var mockReconnectPolicy = new Mock<
IRetryPolicy
>();
217
var mockReconnectPolicy = new Mock<
IRetryPolicy
>();
312
var mockReconnectPolicy = new Mock<
IRetryPolicy
>();
392
var mockReconnectPolicy = new Mock<
IRetryPolicy
>();
490
var mockReconnectPolicy = new Mock<
IRetryPolicy
>();
577
var mockReconnectPolicy = new Mock<
IRetryPolicy
>();
632
var mockReconnectPolicy = new Mock<
IRetryPolicy
>();
687
var mockReconnectPolicy = new Mock<
IRetryPolicy
>();
747
var mockReconnectPolicy = new Mock<
IRetryPolicy
>();
854
var mockReconnectPolicy = new Mock<
IRetryPolicy
>();
986
var mockReconnectPolicy = new Mock<
IRetryPolicy
>();
1063
var mockReconnectPolicy = new Mock<
IRetryPolicy
>();