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