21 lines
586 B
C#
21 lines
586 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Microsoft.eShopOnContainers.BuildingBlocks.Resilience.HttpResilience.Policies
|
|
{
|
|
internal class RetryPolicy : ResilientPolicy
|
|
{
|
|
public RetryPolicy(int retries, int backoffSeconds, bool exponentialBackoff)
|
|
{
|
|
Retries = retries;
|
|
BackoffSeconds = backoffSeconds;
|
|
ExponentialBackoff = exponentialBackoff;
|
|
}
|
|
|
|
public int Retries { get; }
|
|
public int BackoffSeconds { get; }
|
|
public bool ExponentialBackoff { get; }
|
|
}
|
|
}
|