コード例 #1
0
        public void DeregisterImage(ApDeregisterImageRequest request)
        {
            Log.Debug(this, "DeregisterImage()");

            try
            {
                Authenticate(request);
                IaasClient.DeregisterImage(request.ImageId);
            }
            catch (Exception e)
            {
                Log.Error(this, e);
                throw e;
            }
        }
コード例 #2
0
 //
 // GET: /applicationgrid/deregisterimage/{imageId}
 public ActionResult DeregisterImage(string imageId)
 {
     try
     {
         ApDeregisterImageRequest request = new ApDeregisterImageRequest(Credentials);
         request.ImageId = imageId;
         EndPoints.ApDashboardService.DeregisterImage(request);
         return RedirectToAction("Images");
     }
     catch (Exception e)
     {
         return ShowError(e);
     }
 }