예제 #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");
 }
예제 #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");
        }
예제 #3
0
        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;
 }