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)); } } }
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)); } } }
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); } } }