Пример #1
0
 public PipelinedCommandFactoryPool(string host, int port, int executorsCount)
 {
     _pool = new ConnectionPool(host, port);
     _pipelinedExecutor =
         Enumerable.Range(0, executorsCount).Select(q => new PipelinedCommandExecutor(_pool.GetConnection())).
             ToArray();
 }
Пример #2
0
 public PipelinedCommandFactoryPool(string host, int port, int executorsCount)
 {
     _pool = new ConnectionPool(host, port);
     _pipelinedExecutor =
         Enumerable.Range(0, executorsCount).Select(q => new PipelinedCommandExecutor(_pool.GetConnection())).
         ToArray();
 }
Пример #3
0
 public CommandFactory Get()
 {
     return(new CommandFactory(new NormalCommandExecutor(_pool.GetConnection())));
 }