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; }
public CircuitBreaker(IIOperationProperties properties, AresMetrics metrics) { this.properties = properties; this.metrics = metrics; }