Beispiel #1
0
        public ProviderResponse <bool> UpdateApplication(Application app, Cloud cloud)
        {
            var response = new ProviderResponse <bool>();

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

            try
            {
                IVcapClient client       = new VcapClient(cloud);
                var         vcapResponse = client.UpdateApplication(app);
                if (vcapResponse != null && !String.IsNullOrEmpty(vcapResponse.Description))
                {
                    throw new Exception(vcapResponse.Description);
                }
                response.Response = true;
            }
            catch (Exception ex)
            {
                response.Message = ex.Message;
            }
            return(response);
        }
 public ProviderResponse<bool> UpdateApplication(Application app, Cloud cloud)
 {
     var response = new ProviderResponse<bool>();
     try
     {
         IVcapClient client = new VcapClient(cloud);
         client.UpdateApplication(app);
         response.Response = true;
     }
     catch (Exception ex)
     {
         response.Message = ex.Message;
     }
     return response;
 }