예제 #1
0
        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);
        }
예제 #2
0
        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();
        }
예제 #3
0
        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());
        }
예제 #4
0
 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;
 }