public Config() { this.deaSection = (DeaSection)ConfigurationManager.GetSection(DeaSection.SectionName); this.localIPAddress = GetLocalIPAddress(); this.filesServiceUri = new Uri(String.Format("http://localhost:{0}", FilesServicePort)); this.monitoringServicePort = Utility.RandomFreePort(); this.monitoringServiceUri = new Uri(String.Format("http://localhost:{0}", MonitoringServicePort)); this.monitoringServiceHostStr = String.Format(CultureInfo.InvariantCulture, "{0}:{1}", localIPAddress, monitoringServicePort); this.filesCredentials = new ServiceCredential(); this.monitoringCredentials = new ServiceCredential(); }
public Config() { this.deaSection = (DeaSection)ConfigurationManager.GetSection(DeaSection.SectionName); this.localIPAddress = GetLocalIPAddress(); this.filesServiceUri = new Uri(String.Format("http://*****:*****@"SOFTWARE\Microsoft\InetStp"); string iisInstallPath = subKey.GetValue("InstallPath").ToString(); appCmdPath = Path.Combine(iisInstallPath, "appcmd.exe"); if (File.Exists(appCmdPath)) { hasAppCmd = true; } else { appCmdPath = null; hasAppCmd = false; } } catch { appCmdPath = null; hasAppCmd = false; } }