BreakDurationGeneratorArguments
Represents arguments used to generate a dynamic break duration for a circuit breaker.
Gets the context that provides additional information about the resilience operation.
Gets the count of failures that have occurred.
Gets the failure rate that represents the ratio of failures to total actions.
Gets the number of half-open attempts.
public BreakDurationGeneratorArguments(double failureRate, int failureCount, ResilienceContext context)
Initializes a new instance of the BreakDurationGeneratorArguments struct.
public BreakDurationGeneratorArguments(double failureRate, int failureCount, ResilienceContext context, int halfOpenAttempts)
Initializes a new instance of the BreakDurationGeneratorArguments struct.