コード例 #1
0
ファイル: Config.cs プロジェクト: chandermani/ironfoundry
        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();
        }
コード例 #2
0
ファイル: Config.cs プロジェクト: niemyjski/ironfoundry
        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;
            }
        }