public void Stop_App_As_User() { IVcapClient client = new VcapClient("http://api.ironfoundry.me"); VcapClientResult rslt = client.Login("*****@*****.**", "password"); Assert.True(rslt.Success); VcapUser user = client.GetUser("otheruser"); client.ProxyAs(user); VcapClientResult stopRslt = client.Stop("appname"); }
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; }