1 implementation of NextRetryDelay
Microsoft.AspNetCore.SignalR.Client.Core (1)
Internal\DefaultRetryPolicy.cs (1)
36
public TimeSpan?
NextRetryDelay
(RetryContext retryContext)
14 references to NextRetryDelay
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (1)
1925
return _reconnectPolicy!.
NextRetryDelay
(new RetryContext
RetryContext.cs (1)
9
/// The context passed to <see cref="IRetryPolicy.
NextRetryDelay
(RetryContext)"/> to help the policy determine
Microsoft.AspNetCore.SignalR.Client.Tests (12)
HubConnectionTests.Reconnect.cs (12)
117
mockReconnectPolicy.Setup(p => p.
NextRetryDelay
(It.IsAny<RetryContext>())).Returns<RetryContext>(context =>
218
mockReconnectPolicy.Setup(p => p.
NextRetryDelay
(It.IsAny<RetryContext>())).Returns<RetryContext>(context =>
313
mockReconnectPolicy.Setup(p => p.
NextRetryDelay
(It.IsAny<RetryContext>())).Returns<RetryContext>(context =>
393
mockReconnectPolicy.Setup(p => p.
NextRetryDelay
(It.IsAny<RetryContext>())).Returns<RetryContext>(context =>
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);
748
mockReconnectPolicy.Setup(p => p.
NextRetryDelay
(It.IsAny<RetryContext>())).Returns<RetryContext>(context =>
855
mockReconnectPolicy.Setup(p => p.
NextRetryDelay
(It.IsAny<RetryContext>())).Returns<RetryContext>(context =>
987
mockReconnectPolicy.Setup(p => p.
NextRetryDelay
(It.IsAny<RetryContext>())).Returns<RetryContext>(context =>
1064
mockReconnectPolicy.Setup(p => p.
NextRetryDelay
(It.IsAny<RetryContext>())).Returns<RetryContext>(context =>