예제 #1
0
        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();
        }
예제 #2
0
        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();
        }
예제 #3
0
 public void Delete(Application app)
 {
     var helper = new AppsHelper(_proxyUser, _credMgr);
     helper.Delete(app);
 }
예제 #4
0
 public void Delete(string appName)
 {
     var helper = new AppsHelper(_proxyUser, _credMgr);
     helper.Delete(appName);
 }
예제 #5
0
        public void Delete(Application app)
        {
            var helper = new AppsHelper(proxyUser, credMgr);

            helper.Delete(app);
        }
예제 #6
0
        public void Delete(string appName)
        {
            var helper = new AppsHelper(proxyUser, credMgr);

            helper.Delete(appName);
        }