public DefaultConnectionManage(ConnectionContext context, IGatewayProvider gatewayProvider, IClusterConnectionFactory factory, IClusterNodeProvider clusterNodeProvider, IGatewayPipeline gatewayFilter, IGatewaySelector gatewaySelector, ClientOptions options)
 {
     this.factory             = factory;
     this.clusterNodeProvider = clusterNodeProvider;
     this.gatewayFilter       = gatewayFilter;
     this.gatewaySelector     = gatewaySelector;
     this.gatewayProvider     = gatewayProvider;
     this.options             = options;
     this.context             = context;
 }
Esempio n. 2
0
 public RandomSelector(IClusterConnectionFactory connectionFactory, ConnectionContext context)
 {
     this.connectionFactory = connectionFactory;
     random       = new Random();
     this.context = context;
 }