Servicestack.net Mini Profiler in razor view

僤鯓⒐⒋嵵緔 提交于 2019-12-19 08:53:06

问题


Is it possible to use the mini profiler in service stack with the razor views? It looks like the documentation only shows the profiler when using the json html report view.


回答1:


Yes you can include it using the same MVC include but include it .AsRaw() so it doesn't get HTML encoded, e.g:

@ServiceStack.MiniProfiler.Profiler.RenderIncludes().AsRaw()

Example taken from this RazorRockstars template.



来源:https://stackoverflow.com/questions/12586343/servicestack-net-mini-profiler-in-razor-view

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