Changed the profiler over to use resolvers again. We no longer will call MiniProfiler directly.

Added an HtmlHelper extension which is used to render the profiler html output.
Added an HtmlHelper property to the new base page too.
This commit is contained in:
Shannon Deminick
2013-05-13 20:10:28 -10:00
parent 922ebe5411
commit b6f52bf782
19 changed files with 333 additions and 331 deletions

View File

@@ -10,17 +10,29 @@ using System.Web.Routing;
using Umbraco.Core;
using Umbraco.Core.Dynamics;
using Umbraco.Core.IO;
using Umbraco.Core.Profiling;
using Umbraco.Web.Mvc;
using umbraco;
using umbraco.cms.businesslogic.member;
namespace Umbraco.Web
{
/// <summary>
/// <summary>
/// HtmlHelper extensions for use in templates
/// </summary>
public static class HtmlHelperRenderExtensions
{
/// <summary>
/// Renders the markup for the profiler
/// </summary>
/// <param name="helper"></param>
/// <returns></returns>
public static IHtmlString RenderProfiler(this HtmlHelper helper)
{
return new HtmlString(ProfilerResolver.Current.Profiler.Render());
}
/// <summary>
/// Renders a partial view that is found in the specified area
/// </summary>