mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-23 13:02:51 +08:00
28 lines
844 B
C#
28 lines
844 B
C#
using Polly.Timeout;
|
|
|
|
namespace Ocelot.Configuration
|
|
{
|
|
public class QoSOptions
|
|
{
|
|
public QoSOptions(
|
|
int exceptionsAllowedBeforeBreaking,
|
|
int durationofBreak,
|
|
int timeoutValue,
|
|
TimeoutStrategy timeoutStrategy = TimeoutStrategy.Pessimistic)
|
|
{
|
|
ExceptionsAllowedBeforeBreaking = exceptionsAllowedBeforeBreaking;
|
|
DurationOfBreak = durationofBreak;
|
|
TimeoutValue = timeoutValue;
|
|
TimeoutStrategy = timeoutStrategy;
|
|
}
|
|
|
|
public int ExceptionsAllowedBeforeBreaking { get; private set; }
|
|
|
|
public int DurationOfBreak { get; private set; }
|
|
|
|
public int TimeoutValue { get; private set; }
|
|
|
|
public TimeoutStrategy TimeoutStrategy { get; private set; }
|
|
}
|
|
}
|