Interface IHystrixCircuitBreaker
Namespace: Hystrix.Dotnet
Assembly: Hystrix.Dotnet.dll
Syntax
public interface IHystrixCircuitBreaker
Properties
| Improve this Doc View SourceCircuitIsOpen
Indicates whether the circuit is open or not, without affecting the state
Declaration
bool CircuitIsOpen { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceAllowRequest()
Checks whether a request is allowed and changes state of the circuit breaker if there's a reason to do so
Declaration
bool AllowRequest()
Returns
Type | Description |
---|---|
System.Boolean |
CloseCircuit()
Closes the circuit
Declaration
void CloseCircuit()
OpenCircuit()
Opens the circuit
Declaration
void OpenCircuit()