Example #1
0
 private AresExecutor(IOperation operation)
 {
     var props = new PropertiesCommandDefault(new OperationPropertiesSetter());
     this.cb = CircuitBreakerFactory.Get(operation.Name, props);
     this.metrics = AresMetricsFactory.Get(operation.Name, props);
     this.operation = operation;
 }
Example #2
0
 public CircuitBreaker(IIOperationProperties properties, AresMetrics metrics)
 {
     this.properties = properties;
     this.metrics = metrics;
 }