internal IISVersionHelper(string version) {
            // version is null if we're supposed to use the OS's IIS installation
            if (version == null)
                return;

            try {
                _versionManager = CreateVersionManager();
                _version = _versionManager.GetVersionObject(version, IIS_PRODUCT_EXPRESS);
                _version.ApplyManifestContext();
            }
            catch {
                Release();
                throw;
            }
        }
Пример #2
0
        internal IISVersionHelper(string version)
        {
            // version is null if we're supposed to use the OS's IIS installation
            if (version == null)
            {
                return;
            }

            try {
                _versionManager = CreateVersionManager();
                _version        = _versionManager.GetVersionObject(version, IIS_PRODUCT_EXPRESS);
                _version.ApplyManifestContext();
            }
            catch {
                Release();
                throw;
            }
        }