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.