예제 #1
0
 public ClusterNode(ClusterContext context, ITypeTranscoder transcoder, ICircuitBreaker circuitBreaker)
 {
     _context        = context;
     _transcoder     = transcoder;
     _circuitBreaker = circuitBreaker;
 }
예제 #2
0
 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));
 }
예제 #4
0
        private readonly CircuitBreaker _circuitBreaker = new CircuitBreaker();//TODO integrate with configuration

        public ClusterNode(ClusterContext context)
        {
            _context = context;
        }
예제 #5
0
 public ClusterNode(ClusterContext context, ObjectPool <OperationBuilder> operationBuilderPool, ICircuitBreaker circuitBreaker)
 {
     _context = context;
     _operationBuilderPool = operationBuilderPool;
     _circuitBreaker       = circuitBreaker;
 }
예제 #6
0
 public ClusterNode(ClusterContext context)
     : this(context, context.ServiceProvider.GetRequiredService <ObjectPool <OperationBuilder> >(),
            context.ServiceProvider.GetRequiredService <CircuitBreaker>())
 {
 }