mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:17:22 +01:00
12 lines
No EOL
289 B
C#
12 lines
No EOL
289 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(5, 20));
|
|
}
|
|
} |