Esempio n. 1
0
 public void Stop_App_As_User()
 {
     IVcapClient client = new VcapClient("http://api.ironfoundry.me");
     client.Login("*****@*****.**", "password");
     VcapUser user = client.GetUser("otheruser");
     client.ProxyAs(user);
     client.Stop("appname");
 }
Esempio n. 2
0
        public void Stop_App_As_User()
        {
            IVcapClient client = new VcapClient("http://api.ironfoundry.me");

            client.Login("*****@*****.**", "password");
            VcapUser user = client.GetUser("otheruser");

            client.ProxyAs(user);
            client.Stop("appname");
        }
        public ProviderResponse <bool> Stop(Application app, Cloud cloud)
        {
            ProviderResponse <bool> response = new ProviderResponse <bool>();

            try
            {
                IVcapClient client = new VcapClient(cloud);
                client.Stop(app);
                response.Response = true;
            }
            catch (Exception ex)
            {
                response.Message = ex.Message;
            }
            return(response);
        }
 public ProviderResponse<bool> Stop(Application app, Cloud cloud)
 {
     var response = new ProviderResponse<bool>();
     try
     {
         IVcapClient client = new VcapClient(cloud);
         client.Stop(app);
         response.Response = true;
     }
     catch (Exception ex)
     {
         response.Message = ex.Message;
     }
     return response;
 }