I found only this manual describing how to make MiniProfiler work with ASP.NET Web API and Swagger UI, but I didn't find any manual describing how to make ASP.NET Core Web API work with MiniProfiler to show results in Swagger UI.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
All you need is to customize Swagger
index.html
file just like it's explained in the documentation. After you created a custom HTML file add the following line into it:Basically the script above is the output of the
MiniProfiler.Current.RenderIncludes()
method.Here is below the
ConfigureServices
and theConfigure
methods to see how both Swagger and Miniprofiler are configured