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, credentialManager); foreach (var a in appsHelper.GetApplications(email)) { appsHelper.Delete(a.Name); } var servicesHelper = new ServicesHelper(proxyUser, credentialManager); foreach (var ps in servicesHelper.GetProvisionedServices()) { servicesHelper.DeleteService(ps.Name); } VcapJsonRequest r = BuildVcapJsonRequest(Method.DELETE, Constants.UsersResource, email); r.Execute(); }
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, CredentialManager); foreach (Application a in appsHelper.GetApplications(email)) { appsHelper.Delete(a.Name); } var servicesHelper = new ServicesHelper(ProxyUser, CredentialManager); foreach (ProvisionedService ps in servicesHelper.GetProvisionedServices()) { servicesHelper.DeleteService(ps.Name); } VcapJsonRequest r = BuildVcapJsonRequest(Method.DELETE, Constants.UsersResource, email); r.Execute(); }
public void Delete(Application app) { var helper = new AppsHelper(_proxyUser, _credMgr); helper.Delete(app); }
public void Delete(string appName) { var helper = new AppsHelper(_proxyUser, _credMgr); helper.Delete(appName); }
public void Delete(Application app) { var helper = new AppsHelper(proxyUser, credMgr); helper.Delete(app); }
public void Delete(string appName) { var helper = new AppsHelper(proxyUser, credMgr); helper.Delete(appName); }