public ClusterNode(ClusterContext context, ITypeTranscoder transcoder, ICircuitBreaker circuitBreaker) { _context = context; _transcoder = transcoder; _circuitBreaker = circuitBreaker; }
public ClusterNode(ClusterContext context) : this(context, context.ServiceProvider.GetRequiredService <ITypeTranscoder>(), context.ServiceProvider.GetRequiredService <CircuitBreaker>()) { }
public ServiceUriProvider(ClusterContext clusterContext) { _clusterContext = clusterContext ?? throw new ArgumentNullException(nameof(clusterContext)); }
private readonly CircuitBreaker _circuitBreaker = new CircuitBreaker();//TODO integrate with configuration public ClusterNode(ClusterContext context) { _context = context; }
public ClusterNode(ClusterContext context, ObjectPool <OperationBuilder> operationBuilderPool, ICircuitBreaker circuitBreaker) { _context = context; _operationBuilderPool = operationBuilderPool; _circuitBreaker = circuitBreaker; }
public ClusterNode(ClusterContext context) : this(context, context.ServiceProvider.GetRequiredService <ObjectPool <OperationBuilder> >(), context.ServiceProvider.GetRequiredService <CircuitBreaker>()) { }