コード例 #1
0
        protected override IPool <RequestExecutingContext <TAppSession, TRequestInfo> > CreateResource(IServerConfig config)
        {
            IPool <RequestExecutingContext <TAppSession, TRequestInfo> > pool = null;

            pool = new IntelliPool <RequestExecutingContext <TAppSession, TRequestInfo> >(Math.Min(Math.Max(config.MaxConnectionNumber / 15, 100), config.MaxConnectionNumber), pool.CreateDefaultPoolItemCreator());
            return(pool);
        }