protected ServerBootstrap NewBootstrap(IServerBootstrapFactory factory, IByteBufferAllocator allocator)
        {
            var bs = factory.NewInstance();

            Configure(bs, allocator);
            return(bs);
        }
Example #2
0
        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);
        }