public VcapComponentBase(
     string type, string index, Guid uuid,
     string host, ServiceCredential credentials, DateTime start)
 {
     Type        = type;
     Index       = index;
     Uuid        = uuid;
     Host        = host;
     Start       = start;
     Credentials = credentials;
 }
Example #2
0
        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();
        }
Example #3
0
        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();
        }
Example #4
0
        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;
            }
        }
Example #5
0
        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;
            }
        }
 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)
 {
 }