Esempio n. 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;
        }
Esempio n. 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);
        }