public IEnumerable <Application> GetApplications() { var helper = new AppsHelper(proxyUser, credMgr); IEnumerable <Application> apps = helper.GetApplications(); foreach (var app in apps) // TODO not thrilled about this { app.Parent = cloud; app.User = proxyUser; } return(apps); }
public IEnumerable <Application> GetApplications() { checkLoginStatus(); var hlpr = new AppsHelper(credMgr); IEnumerable <Application> apps = hlpr.GetApplications(); foreach (var a in apps) { a.Parent = cloud; } // TODO not thrilled about this return(apps); }
public VcapClientResult DeleteUser(string email) { var appsHelper = new AppsHelper(proxyUser, credMgr); foreach (Application a in appsHelper.GetApplications(email)) { appsHelper.Delete(a.Name); } var servicesHelper = new ServicesHelper(proxyUser, credMgr); foreach (ProvisionedService ps in servicesHelper.GetProvisionedServices(email)) { servicesHelper.DeleteService(ps.Name); } VcapJsonRequest r = base.BuildVcapJsonRequest(Method.DELETE, Constants.USERS_PATH, email); IRestResponse response = r.Execute(); return new VcapClientResult(); }
public void DeleteUser(string email) { // TODO: doing this causes a "not logged in" failure when the user // doesn't exist, which is kind of misleading. var appsHelper = new AppsHelper(proxyUser, credMgr); foreach (Application a in appsHelper.GetApplications(email)) { appsHelper.Delete(a.Name); } var servicesHelper = new ServicesHelper(proxyUser, credMgr); foreach (ProvisionedService ps in servicesHelper.GetProvisionedServices()) { servicesHelper.DeleteService(ps.Name); } VcapJsonRequest r = BuildVcapJsonRequest(Method.DELETE, Constants.USERS_PATH, email); r.Execute(); }
public VcapClientResult DeleteUser(string email) { var appsHelper = new AppsHelper(credMgr); foreach (Application a in appsHelper.GetApplications(email)) { appsHelper.Delete(a.Name); } var servicesHelper = new ServicesHelper(credMgr); foreach (ProvisionedService ps in servicesHelper.GetProvisionedServices(email)) { servicesHelper.DeleteService(ps.Name); } var r = new VcapJsonRequest(credMgr, Method.DELETE, Constants.USERS_PATH, email); RestResponse response = r.Execute(); return(new VcapClientResult()); }
public void DeleteUser(string email) { // TODO: doing this causes a "not logged in" failure when the user // doesn't exist, which is kind of misleading. var appsHelper = new AppsHelper(proxyUser, credMgr); foreach (Application a in appsHelper.GetApplications(email)) { appsHelper.Delete(a.Name); } var servicesHelper = new ServicesHelper(proxyUser, credMgr); foreach (ProvisionedService ps in servicesHelper.GetProvisionedServices()) { servicesHelper.DeleteService(ps.Name); } VcapJsonRequest r = BuildVcapJsonRequest(Method.DELETE, Constants.USERS_PATH, email); r.Execute(); }
public IEnumerable<Application> GetApplications() { CheckLoginStatus(); var hlpr = new AppsHelper(proxyUser, credMgr); IEnumerable<Application> apps = hlpr.GetApplications(); foreach (var app in apps) // TODO not thrilled about this { app.Parent = cloud; app.User = proxyUser; } return apps; }
public IEnumerable<Application> GetApplications() { checkLoginStatus(); var hlpr = new AppsHelper(credMgr); IEnumerable<Application> apps = hlpr.GetApplications(); foreach (var a in apps) { a.Parent = cloud; } // TODO not thrilled about this return apps; }