12 lines
411 B
C#
12 lines
411 B
C#
namespace AlayaCore.Models.Configuration
|
|
{
|
|
public sealed class RetryPolicyOptions
|
|
{
|
|
public int MaxAttempts { get; set; } = 3;
|
|
public int BaseDelayMilliseconds { get; set; } = 500;
|
|
public double BackoffMultiplier { get; set; } = 2.0;
|
|
public int MaxDelayMilliseconds { get; set; } = 3000;
|
|
|
|
public static RetryPolicyOptions Default { get; } = new();
|
|
}
|
|
} |