Profiling asp.net core 2 (web api) with angular 5

一曲冷凌霜 提交于 2019-12-10 17:12:41

问题


I am looking for Profiling solutions for following environment, could someone suggest please.

  • ASP.NET Core 2 on net471
  • EntityFramework 6.2.0
  • Angular 5.0.0

I looked into MiniProfiler & Glimpse.

  • Glimpse has not been upgraded for Core 2.0 yet.
  • MiniProfiler works with Core 2 but does not work properly for SPA. Someone has tried to extend http of Angular 2 but Angular 5 now uses HttpClient & interceptor I think.
  • Also I could not figure out how to profile DataContext (System.Data.Linq) for SQL profiling using MiniProfile. Docs suggests Connection wrapping approch. This is a separate issue I guess.

回答1:


If you follow the doc (https://miniprofiler.com/dotnet/AspDotNetCore) you should be good to go for the server side. Even to integrate it with EF.

For the Angular 5 integration, I got inspired by this post to write an http interceptor: https://blog.dangl.me/archive/using-the-stackexchange-miniprofiler-with-an-angular-single-page-application/



来源:https://stackoverflow.com/questions/48275132/profiling-asp-net-core-2-web-api-with-angular-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!