public HostInfo Get(string guid) { using (var registryRepo = new RegistryRepository(new RegistryDatabaseFactory())) { return registryRepo.GetHost(guid); } }
public List<ServiceInfo> GetCluster(string guid) { using (var registryRepo = new RegistryRepository(new RegistryDatabaseFactory())) { return registryRepo.GetServiceCluster(guid); } }
public List<HostInfo> GetAll() { using (var registryRepo = new RegistryRepository(new RegistryDatabaseFactory())) { return registryRepo.AllHosts(); } }
public ServiceCluster GetClusterStats(string guid) { using (var registryRepo = new RegistryRepository(new RegistryDatabaseFactory())) { return registryRepo.GetServiceClusterInfo(guid); } }
public List<ServiceInfo> GetAll() { using (var registryRepo = new RegistryRepository(new RegistryDatabaseFactory())) { return registryRepo.AllServices(ServiceState.Running); } }
public ServiceInfo Get(string guid) { using (var registryRepo = new RegistryRepository(new RegistryDatabaseFactory())) { return registryRepo.GetService(guid); } }
public void DecommissionService(string guid) { using (var registryRepo = new RegistryRepository(new RegistryDatabaseFactory())) { registryRepo.UpdateServiceStatus(guid, ServiceState.Decommissioned); } }
static ServiceInfo RegisterService(ServiceInfo info) { ServiceInfo result = null; using (var registryRepo = new RegistryRepository(new RegistryDatabaseFactory())) { result = registryRepo.InsertOrUpdateService(info); } return result; }
public void Edit(string guid, HostEditModel model) { var tagList = new List<string>(); if(!string.IsNullOrEmpty(model.Tags)) { tagList = model.Tags.Split(',').Select(t => t.Trim()).ToList(); } using (var registryRepo = new RegistryRepository(new RegistryDatabaseFactory())) { registryRepo.UpdateHostTagsLocation(guid, model.Location, tagList); } }
public List<ServiceInfo> GetHostServices(string guid) { using (var registryRepo = new RegistryRepository(new RegistryDatabaseFactory())) { return registryRepo.AllHostServices(guid); } }
public List<ServiceInfo> GetServiceIssues() { using (var registryRepo = new RegistryRepository(new RegistryDatabaseFactory())) { return registryRepo.AllDisconnectServices(); } }