我正在为以下环境寻找分析解决方案,有人可以建议吗。
- net471 上的 ASP.NET Core 2
- Entity Framework 6.2.0
- Angular 5.0.0
我查看了 MiniProfiler 和 Glimpse。
- Glimpse 尚未针对 Core 2.0 进行升级。
- MiniProfiler 可与 Core 2 一起使用,但不能正常用于 SPA。有人试图扩展 Angular 2 的
http
但 Angular 5 现在使用HttpClient
和interceptor
我想。 - 我也不知道如何使用 MiniProfile 分析
DataContext (System.Data.Linq)
以进行 SQL 分析。文档建议使用Connection
包装方法。我想这是一个单独的问题。
最佳答案
如果您按照文档 ( https://miniprofiler.com/dotnet/AspDotNetCore ) 进行操作,那么您应该可以选择服务器端。甚至将其与 EF 集成。
对于 Angular 5 集成,我受到这篇文章的启发,编写了一个 http 拦截器: https://blog.dangl.me/archive/using-the-stackexchange-miniprofiler-with-an-angular-single-page-application/
关于angular - 使用 angular 5 分析 asp.net core 2 (web api),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48275132/