Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. [HttpGet, Route("analysis")]
  2. public string Analysis(string projectName, string definitionName)
  3. {
  4. string path = Path.Combine(@"\glbuild2CodeAnalysisLogs", projectName, definitionName, "CodeAnalysis.html");
  5. if (System.IO.File.Exists(path))
  6. {
  7. string temp = System.IO.File.ReadAllText(path);
  8. return temp;
  9. }
  10. else return "Error";
  11. }
  12.  
  13. this.http.get('http://localhost:54639/api/logs/analysis?projectName=' + this.currentDefinition.project.name + '&definitionName=' + this.currentDefinition.name).subscribe(data => {
  14. this.AnalysisLogs = data;
  15. console.log(data);
  16. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement