예제 #1
0
        private static int CreateAppPool(IUtil util, string[] args)
        {
            int errorCode = ErrorCode.Succeed;
            string poolName = GetValue(args, "poolName");

            //必须指定池名称
            if(poolName.IsNullOrEmpty())
                errorCode = ErrorCode.InvalidParameter;
            else
                errorCode = util.CreateAppPool(poolName);

            return errorCode;
        }
예제 #2
0
파일: Program.cs 프로젝트: BoyTNT/iisutil
        private static int CreateAppPool(IUtil util, string[] args)
        {
            int    errorCode = ErrorCode.Succeed;
            string poolName  = GetValue(args, "poolName");

            //必须指定池名称
            if (poolName.IsNullOrEmpty())
            {
                errorCode = ErrorCode.InvalidParameter;
            }
            else
            {
                errorCode = util.CreateAppPool(poolName);
            }

            return(errorCode);
        }