protected Bootstrap NewBootstrap(IClientBootstrapFactory factory, IByteBufferAllocator allocator) { var cb = factory.NewInstance(); Configure(cb, allocator); return(cb); }
protected (ServerBootstrap sb, Bootstrap cb) NewBootstrap(IServerBootstrapFactory serverBootstrapFactory, IClientBootstrapFactory clientBootstrapFactory, IByteBufferAllocator allocator) { var sb = serverBootstrapFactory.NewInstance(); var cb = clientBootstrapFactory.NewInstance(); Configure(sb, cb, allocator); return(sb, cb); }