Beispiel #1
0
        public Application GetApplication(string name)
        {
            var         helper = new AppsHelper(proxyUser, credMgr);
            Application rv     = helper.GetApplication(name);

            rv.Parent = cloud; // TODO not thrilled about this
            return(rv);
        }
        public void BindService(string provisionedServiceName, string appName)
        {
            var apps = new AppsHelper(ProxyUser, CredentialManager);

            Application app = apps.GetApplication(appName);
            app.Services.Add(provisionedServiceName);

            var request = BuildVcapJsonRequest(Method.PUT, Constants.APPS_PATH, app.Name);
            request.AddBody(app);
            request.Execute();

            // Ruby code re-gets info
            app = apps.GetApplication(appName);
            if (app.IsStarted)
            {
                apps.Restart(app);
            }
        }
Beispiel #3
0
        public Application GetApplication(string name)
        {
            checkLoginStatus();
            var         hlpr = new AppsHelper(credMgr);
            Application rv   = hlpr.GetApplication(name);

            rv.Parent = cloud; // TODO not thrilled about this
            return(rv);
        }
        public VcapClientResult BindService(string argProvisionedServiceName, string argAppName)
        {
            var apps = new AppsHelper(credMgr);

            Application app = apps.GetApplication(argAppName);
            app.Services.Add(argProvisionedServiceName);

            var request = new VcapJsonRequest(credMgr, Method.PUT, Constants.APPS_PATH, app.Name);
            request.AddBody(app);
            RestResponse response = request.Execute();

            // Ruby code re-gets info
            app = apps.GetApplication(argAppName);
            if (app.IsStarted)
            {
                apps.Restart(app);
            }
            return new VcapClientResult();
        }
        public void BindService(string provisionedServiceName, string appName)
        {
            var apps = new AppsHelper(ProxyUser, CredentialManager);

            Application app = apps.GetApplication(appName);

            app.Services.Add(provisionedServiceName);

            var request = BuildVcapJsonRequest(Method.PUT, Constants.APPS_PATH, app.Name);

            request.AddBody(app);
            request.Execute();

            // Ruby code re-gets info
            app = apps.GetApplication(appName);
            if (app.IsStarted)
            {
                apps.Restart(app);
            }
        }
        public VcapClientResult BindService(string argProvisionedServiceName, string argAppName)
        {
            var apps = new AppsHelper(credMgr);

            Application app = apps.GetApplication(argAppName);

            app.Services.Add(argProvisionedServiceName);

            var request = new VcapJsonRequest(credMgr, Method.PUT, Constants.APPS_PATH, app.Name);

            request.AddBody(app);
            RestResponse response = request.Execute();

            // Ruby code re-gets info
            app = apps.GetApplication(argAppName);
            if (app.IsStarted)
            {
                apps.Restart(app);
            }
            return(new VcapClientResult());
        }
Beispiel #7
0
 public Application GetApplication(string name)
 {
     CheckLoginStatus();
     var hlpr = new AppsHelper(proxyUser, credMgr);
     Application rv =  hlpr.GetApplication(name);
     rv.Parent = cloud; // TODO not thrilled about this
     return rv;
 }
Beispiel #8
0
 public Application GetApplication(string name)
 {
     var helper = new AppsHelper(proxyUser, credMgr);
     Application rv =  helper.GetApplication(name);
     rv.Parent = cloud; // TODO not thrilled about this
     return rv;
 }