Reputation: 2208
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.
Upvotes: 4
Views: 739
Reputation: 143359
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.
Upvotes: 3