1 instantiation of RetryContext
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1931
return _reconnectPolicy!.NextRetryDelay(new
RetryContext
34 references to RetryContext
Microsoft.AspNetCore.SignalR.Client.Core (3)
Internal\DefaultRetryPolicy.cs (1)
36
public TimeSpan? NextRetryDelay(
RetryContext
retryContext)
IRetryPolicy.cs (1)
25
TimeSpan? NextRetryDelay(
RetryContext
retryContext);
RetryContext.cs (1)
9
/// The context passed to <see cref="IRetryPolicy.NextRetryDelay(
RetryContext
)"/> to help the policy determine
Microsoft.AspNetCore.SignalR.Client.Tests (31)
HubConnectionTests.Reconnect.cs (31)
115
var retryContexts = new List<
RetryContext
>();
117
mockReconnectPolicy.Setup(p => p.NextRetryDelay(It.IsAny<
RetryContext
>())).Returns<
RetryContext
>(context =>
216
var retryContexts = new List<
RetryContext
>();
218
mockReconnectPolicy.Setup(p => p.NextRetryDelay(It.IsAny<
RetryContext
>())).Returns<
RetryContext
>(context =>
311
var retryContexts = new List<
RetryContext
>();
313
mockReconnectPolicy.Setup(p => p.NextRetryDelay(It.IsAny<
RetryContext
>())).Returns<
RetryContext
>(context =>
391
var retryContexts = new List<
RetryContext
>();
393
mockReconnectPolicy.Setup(p => p.NextRetryDelay(It.IsAny<
RetryContext
>())).Returns<
RetryContext
>(context =>
489
var retryContexts = new List<
RetryContext
>();
491
mockReconnectPolicy.Setup(p => p.NextRetryDelay(It.IsAny<
RetryContext
>())).Returns<
RetryContext
>(context =>
578
mockReconnectPolicy.Setup(p => p.NextRetryDelay(It.IsAny<
RetryContext
>())).Returns<
RetryContext
>(context =>
633
mockReconnectPolicy.Setup(p => p.NextRetryDelay(It.IsAny<
RetryContext
>())).Returns<TimeSpan?>(null);
688
mockReconnectPolicy.Setup(p => p.NextRetryDelay(It.IsAny<
RetryContext
>())).Returns<TimeSpan?>(null);
745
var retryContexts = new List<
RetryContext
>();
748
mockReconnectPolicy.Setup(p => p.NextRetryDelay(It.IsAny<
RetryContext
>())).Returns<
RetryContext
>(context =>
852
var retryContexts = new List<
RetryContext
>();
855
mockReconnectPolicy.Setup(p => p.NextRetryDelay(It.IsAny<
RetryContext
>())).Returns<
RetryContext
>(context =>
985
var retryContexts = new List<
RetryContext
>();
987
mockReconnectPolicy.Setup(p => p.NextRetryDelay(It.IsAny<
RetryContext
>())).Returns<
RetryContext
>(context =>
1062
var retryContexts = new List<
RetryContext
>();
1064
mockReconnectPolicy.Setup(p => p.NextRetryDelay(It.IsAny<
RetryContext
>())).Returns<
RetryContext
>(context =>