WasEndpointConfigContainer(string webServerName, string webDirectoryName, string webDirectoryPath, RuntimeVersions runtimeVersion)
        {
            if (string.IsNullOrEmpty(webDirectoryPath) || !Directory.Exists(webDirectoryPath))
            {
                // We will not tolerate a webDir that does not exist
                throw Tool.CreateException(SR.GetString(SR.WebDirectoryPathNotFound, webDirectoryName, webDirectoryPath), null);
            }

            this.webDirectoryName = webDirectoryName;
            this.webDirectoryPath = webDirectoryPath;
            this.webServerName = webServerName;
            this.closed = false;
            this.configFile = new AtomicFile(this.webDirectoryPath + "\\web.config");
            this.svcFileManager = new SvcFileManager(this.webDirectoryPath);
            this.runtimeVersion = runtimeVersion;
        }
        WasEndpointConfigContainer(string webServerName, string webDirectoryName, string webDirectoryPath, RuntimeVersions runtimeVersion)
        {
            if (string.IsNullOrEmpty(webDirectoryPath) || !Directory.Exists(webDirectoryPath))
            {
                // We will not tolerate a webDir that does not exist
                throw Tool.CreateException(SR.GetString(SR.WebDirectoryPathNotFound, webDirectoryName, webDirectoryPath), null);
            }

            this.webDirectoryName = webDirectoryName;
            this.webDirectoryPath = webDirectoryPath;
            this.webServerName    = webServerName;
            this.closed           = false;
            this.configFile       = new AtomicFile(this.webDirectoryPath + "\\web.config");
            this.svcFileManager   = new SvcFileManager(this.webDirectoryPath);
            this.runtimeVersion   = runtimeVersion;
        }