Exemplo n.º 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);
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
        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();
        }
Exemplo n.º 5
0
        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);
            }
        }
Exemplo n.º 6
0
        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());
        }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }