12 lines
290 B
C#
12 lines
290 B
C#
using System;
|
|
using Microsoft.AspNetCore.SignalR.Client;
|
|
|
|
namespace MareSynchronos.WebAPI.Utils;
|
|
|
|
public class ForeverRetryPolicy : IRetryPolicy
|
|
{
|
|
public TimeSpan? NextRetryDelay(RetryContext retryContext)
|
|
{
|
|
return TimeSpan.FromSeconds(new Random().Next(10, 20));
|
|
}
|
|
} |