예제 #1
0
        public static IUtil GetUtil()
        {
            IUtil instance = null;

            int majorVersion = GetIISMajorVersion();
            switch(majorVersion)
            {
                case 6:
                    instance = new UtilForIIS6();
                    break;
                case 7:
                case 8:
                    instance = new UtilForIIS7();
                    break;
            }

            return instance;
        }
예제 #2
0
        public static IUtil GetUtil()
        {
            IUtil instance = null;

            int majorVersion = GetIISMajorVersion();

            switch (majorVersion)
            {
            case 6:
                instance = new UtilForIIS6();
                break;

            case 7:
            case 8:
                instance = new UtilForIIS7();
                break;
            }

            return(instance);
        }