Servicestack.net Mini razor profiler

Is it possible to use the mini profiler in the service stack with the appearance of a razor? It seems that the documentation only shows the profiler when using the json html report view.

+4
source share
1 answer

Yes, you can enable it using the same MVC include, but enable .AsRaw() so that it does not encode HTML, for example:

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

An example from this is the RazorRockstars Template .

+3
source

Source: https://habr.com/ru/post/1436186/


All Articles