Esempio n. 1
0
 public IEnumerable <LogEntry> GetLogEntryDetails(string id, string logId)
 {
     using (_tracer.Step("DeploymentService.GetLogEntryDetails"))
     {
         try
         {
             return(_deploymentManager.GetLogEntryDetails(id, logId).ToList());
         }
         catch (FileNotFoundException ex)
         {
             throw new HttpResponseException(Request.CreateErrorResponse(HttpStatusCode.NotFound, ex));
         }
     }
 }
Esempio n. 2
0
 public HttpResponseMessage GetLogEntryDetails(string id, string logId)
 {
     using (_tracer.Step("DeploymentService.GetLogEntryDetails"))
     {
         try
         {
             var details = _deploymentManager.GetLogEntryDetails(id, logId).ToList();
             return(Request.CreateResponse(HttpStatusCode.OK, ArmUtils.AddEnvelopeOnArmRequest(details, Request)));
         }
         catch (FileNotFoundException ex)
         {
             throw new HttpResponseException(Request.CreateErrorResponse(HttpStatusCode.NotFound, ex));
         }
     }
 }
Esempio n. 3
0
 public IEnumerable <LogEntry> GetLogEntryDetails(string id, string logId)
 {
     using (_tracer.Step("DeploymentService.GetLogEntryDetails"))
     {
         try
         {
             return(_deploymentManager.GetLogEntryDetails(id, logId).ToList());
         }
         catch (FileNotFoundException ex)
         {
             var response = new HttpResponseMessage(HttpStatusCode.NotFound);
             response.Content = new StringContent(ex.Message);
             throw new HttpResponseException(response);
         }
     }
 }