Frank
Frank

Reputation: 2208

Servicestack.net Mini Profiler in razor view

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

Answers (1)

mythz
mythz

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

Related Questions