Search Results for

    Show / Hide Table of Contents
    View Source

    Class WebProfilerHtml

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Web.Common.Profiler
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public class WebProfilerHtml : IProfilerHtml

    Constructors

    View Source

    WebProfilerHtml(IHttpContextAccessor)

    Declaration
    public WebProfilerHtml(IHttpContextAccessor httpContextAccessor)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor

    Methods

    View Source

    Render()

    Renders the profiling results.

    Declaration
    public string Render()
    Returns
    Type Description
    System.String

    The profiling results.

    Remarks

    Normally we would call MiniProfiler.Current.RenderIncludes(...), but because the requeststate is not set, this method does not work. We fake the requestIds from the RequestState here.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • WebProfilerHtml(IHttpContextAccessor)
    • Methods
      • Render()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX