Метод | Описание | |
---|---|---|
CircuitBreakerAsync ( this policyBuilder, int exceptionsAllowedBeforeBreaking, System.TimeSpan durationOfBreak ) : |
Builds a Policy that will function like a Circuit Breaker. The circuit will break if exceptionsAllowedBeforeBreaking exceptions that are handled by this policy are raised consecutively. The circuit will stay broken for the durationOfBreak. Any attempt to execute this policy while the circuit is broken, will immediately throw a BrokenCircuitException containing the exception that broke the circuit. If the first action after the break duration period results in a handled exception, the circuit will break again for another durationOfBreak; if no exception is thrown, the circuit will reset. (see "Release It!" by Michael T. Nygard fi) |
|
CircuitBreakerAsync ( this policyBuilder, int exceptionsAllowedBeforeBreaking, System.TimeSpan durationOfBreak, Action |
Builds a Policy that will function like a Circuit Breaker. The circuit will break if exceptionsAllowedBeforeBreaking exceptions that are handled by this policy are raised consecutively. The circuit will stay broken for the durationOfBreak. Any attempt to execute this policy while the circuit is broken, will immediately throw a BrokenCircuitException containing the exception that broke the circuit. If the first action after the break duration period results in a handled exception, the circuit will break again for another durationOfBreak; if no exception is thrown, the circuit will reset. (see "Release It!" by Michael T. Nygard fi) |
|
CircuitBreakerAsync ( this policyBuilder, int exceptionsAllowedBeforeBreaking, System.TimeSpan durationOfBreak, Action |
Builds a Policy that will function like a Circuit Breaker. The circuit will break if exceptionsAllowedBeforeBreaking exceptions that are handled by this policy are raised consecutively. The circuit will stay broken for the durationOfBreak. Any attempt to execute this policy while the circuit is broken, will immediately throw a BrokenCircuitException containing the exception that broke the circuit. If the first action after the break duration period results in a handled exception, the circuit will break again for another durationOfBreak; if no exception is thrown, the circuit will reset. (see "Release It!" by Michael T. Nygard fi) |
|
CircuitBreakerAsync ( this policyBuilder, int exceptionsAllowedBeforeBreaking, System.TimeSpan durationOfBreak, TimeSpan>.Action |
Builds a Policy that will function like a Circuit Breaker. The circuit will break if exceptionsAllowedBeforeBreaking exceptions that are handled by this policy are raised consecutively. The circuit will stay broken for the durationOfBreak. Any attempt to execute this policy while the circuit is broken, will immediately throw a BrokenCircuitException containing the exception that broke the circuit. If the first action after the break duration period results in a handled exception, the circuit will break again for another durationOfBreak; if no exception is thrown, the circuit will reset. (see "Release It!" by Michael T. Nygard fi) |
|
CircuitBreakerAsync ( this policyBuilder, int exceptionsAllowedBeforeBreaking, System.TimeSpan durationOfBreak, TimeSpan>.Action |
Builds a Policy that will function like a Circuit Breaker. The circuit will break if exceptionsAllowedBeforeBreaking exceptions that are handled by this policy are raised consecutively. The circuit will stay broken for the durationOfBreak. Any attempt to execute this policy while the circuit is broken, will immediately throw a BrokenCircuitException containing the exception that broke the circuit. If the first action after the break duration period results in a handled exception, the circuit will break again for another durationOfBreak; if no exception is thrown, the circuit will reset. (see "Release It!" by Michael T. Nygard fi) |
public static CircuitBreakerAsync ( this policyBuilder, int exceptionsAllowedBeforeBreaking, System.TimeSpan durationOfBreak ) : |
||
policyBuilder | this | The policy builder. |
exceptionsAllowedBeforeBreaking | int | The number of exceptions that are allowed before opening the circuit. |
durationOfBreak | System.TimeSpan | The duration the circuit will stay open before resetting. |
Результат |
public static CircuitBreakerAsync ( this policyBuilder, int exceptionsAllowedBeforeBreaking, System.TimeSpan durationOfBreak, Action |
||
policyBuilder | this | The policy builder. |
exceptionsAllowedBeforeBreaking | int | The number of exceptions that are allowed before opening the circuit. |
durationOfBreak | System.TimeSpan | The duration the circuit will stay open before resetting. |
onBreak | Action |
The action to call when the circuit transitions to an |
onReset | Action |
The action to call when the circuit resets to a |
Результат |
public static CircuitBreakerAsync ( this policyBuilder, int exceptionsAllowedBeforeBreaking, System.TimeSpan durationOfBreak, Action |
||
policyBuilder | this | The policy builder. |
exceptionsAllowedBeforeBreaking | int | The number of exceptions that are allowed before opening the circuit. |
durationOfBreak | System.TimeSpan | The duration the circuit will stay open before resetting. |
onBreak | Action |
The action to call when the circuit transitions to an |
onReset | Action |
The action to call when the circuit resets to a |
onHalfOpen | System.Action | The action to call when the circuit transitions to |
Результат |
public static CircuitBreakerAsync ( this policyBuilder, int exceptionsAllowedBeforeBreaking, System.TimeSpan durationOfBreak, TimeSpan>.Action |
||
policyBuilder | this | The policy builder. |
exceptionsAllowedBeforeBreaking | int | The number of exceptions that are allowed before opening the circuit. |
durationOfBreak | System.TimeSpan | The duration the circuit will stay open before resetting. |
onBreak | TimeSpan>.Action | The action to call when the circuit transitions to an |
onReset | System.Action | The action to call when the circuit resets to a |
Результат |
public static CircuitBreakerAsync ( this policyBuilder, int exceptionsAllowedBeforeBreaking, System.TimeSpan durationOfBreak, TimeSpan>.Action |
||
policyBuilder | this | The policy builder. |
exceptionsAllowedBeforeBreaking | int | The number of exceptions that are allowed before opening the circuit. |
durationOfBreak | System.TimeSpan | The duration the circuit will stay open before resetting. |
onBreak | TimeSpan>.Action | The action to call when the circuit transitions to an |
onReset | System.Action | The action to call when the circuit resets to a |
onHalfOpen | System.Action | The action to call when the circuit transitions to |
Результат |