Свойство | Type | Description | |
---|---|---|---|
Threshold | int | ||
Timeout | System.TimeSpan |
Méthode | Description | |
---|---|---|
Circuit ( int threshold, System.TimeSpan timeout, CircuitState state ) : System | ||
Execute ( System.Action action ) : void | ||
ExecuteAsync ( System.Action action ) : System.Threading.Tasks.Task |
Méthode | Description | |
---|---|---|
AssertState ( CircuitPosition position ) : void | ||
HandleException ( |
protected AssertState ( CircuitPosition position ) : void | ||
position | CircuitPosition | |
Résultat | void |
public Circuit ( int threshold, System.TimeSpan timeout, CircuitState state ) : System | ||
threshold | int | |
timeout | System.TimeSpan | |
state | CircuitState | |
Résultat | System |
public Execute ( System.Action action ) : void | ||
action | System.Action | |
Résultat | void |
public ExecuteAsync ( System.Action action ) : System.Threading.Tasks.Task | ||
action | System.Action | |
Résultat | System.Threading.Tasks.Task |
protected HandleException ( |
||
exception | ||
state | CircuitState | |
Résultat | void |