nuget を使用して MVC4 アプリに servicestack MVC をインストールし、ミニ プロファイラーを有効にしようとしています。
Global.asax で次の手順を実行しました。
protected void Application_BeginRequest(object src, EventArgs e)
{
if (Request.IsLocal)
ServiceStack.MiniProfiler.Profiler.Start();
}
protected void Application_EndRequest(object src, EventArgs e)
{
ServiceStack.MiniProfiler.Profiler.Stop();
}
そして、@ServiceStack.MiniProfiler.Profiler.RenderIncludes().AsRaw() をレイアウト ページに配置しました。ただし、このメソッドはこのリファレンスには存在しません。HTMLをエスケープしてレンダリングする「@ServiceStack.MiniProfiler.Profiler.RenderIncludes()」に「ToHtmlString()」と「ToString()」しか表示されません。「AsRaw()」メソッドは MVC4 で削除されましたか?