예제 #1
0
        public DeaConfig(INatsConfig natsConfig)
        {
            this.deaSection = (DeaSection)ConfigurationManager.GetSection(DeaSection.SectionName);
            this.localIPAddress = Utility.GetLocalIPAddress(deaSection.LocalRoute, natsConfig.Host);

            this.filesServiceUri = new Uri(String.Format("http://*****:*****@"SOFTWARE\Microsoft\InetStp"))
                    {
                        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;
            }
        }
예제 #2
0
        public DeaConfig(INatsConfig natsConfig)
        {
            this.deaSection     = (DeaSection)ConfigurationManager.GetSection(DeaSection.SectionName);
            this.localIPAddress = Utility.GetLocalIPAddress(deaSection.LocalRoute, natsConfig.Host);

            this.filesServiceUri = new Uri(String.Format("http://*****:*****@"SOFTWARE\Microsoft\InetStp"))
                    {
                        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;
            }
        }
 public VcapComponentAnnounce(string type, string index, Guid uuid, string host, ServiceCredential credentials, DateTime start)
     : base(type, index, uuid, host, credentials, start)
 {
 }
 public CustomUserNamePasswordValidator(ServiceCredential credentials)
 {
     this.credentials = credentials;
 }
 public VcapComponentDiscover(string type, Guid uuid, string host, ServiceCredential credentials)
     : base(type, null, uuid, host, credentials, DateTime.Now)
 {
 }