Class HystrixCircuitBreaker
Inheritance
System.Object
HystrixCircuitBreaker
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Hystrix.Dotnet
Assembly: Hystrix.Dotnet.dll
Syntax
public class HystrixCircuitBreaker : IHystrixCircuitBreaker
Constructors
| Improve this Doc View SourceHystrixCircuitBreaker(IDateTimeProvider, HystrixCommandIdentifier, IHystrixConfigurationService, IHystrixCommandMetrics)
Declaration
public HystrixCircuitBreaker(IDateTimeProvider dateTimeProvider, HystrixCommandIdentifier commandIdentifier, IHystrixConfigurationService configurationService, IHystrixCommandMetrics commandMetrics)
Parameters
| Type | Name | Description |
|---|---|---|
| IDateTimeProvider | dateTimeProvider | |
| HystrixCommandIdentifier | commandIdentifier | |
| IHystrixConfigurationService | configurationService | |
| IHystrixCommandMetrics | commandMetrics |
Properties
| Improve this Doc View SourceCircuitIsOpen
Declaration
public 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
public bool AllowRequest()
Returns
| Type | Description |
|---|---|
| System.Boolean |
CloseCircuit()
Closes the circuit
Declaration
public void CloseCircuit()
OpenCircuit()
Opens the circuit
Declaration
public void OpenCircuit()