我按照此处的设置说明https://miniprofiler.com/dotnet/AspDotNetCore并让 Mini Profiler 与我的 ASP.NET 核心 Web 应用程序一起工作。我将代码推送到我的暂存站点,现在可以看到每个请求的输出。
以前仅本地访问记录在这里https://miniprofiler.com/
using StackExchange.Profiling;
...
protected void Application_BeginRequest()
{
if (Request.IsLocal)
{
MiniProfiler.Start();
}
}
如何限制 miniprofiler 仅显示 ASP.NET 核心中的本地请求