public async Task ChannelsSetup()
        {
            var connectionInitializer = new MockConnectionInitializer();
            var redactor          = new MockRedactor();
            var connectionFactory = new MockConnectionFactory();

            _channelPool = new ChannelConnectionPool(connectionInitializer, connectionFactory,
                                                     new DefaultConnectionPoolScaleController(redactor,
                                                                                              NullLogger <DefaultConnectionPoolScaleController> .Instance),
                                                     redactor, NullLogger <ChannelConnectionPool> .Instance, 1024)
            {
                MinimumSize = 2,
                MaximumSize = 2
            };

            await _channelPool.InitializeAsync();
        }
 public FreezeDisposable(ChannelConnectionPool connectionPool)
 {
     _connectionPool = connectionPool;
 }