Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IWebProfilerService

    Service for managing the web profiler (MiniProfiler) status.

    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IWebProfilerService

    Methods

    View Source

    GetStatus()

    Gets the current status of the web profiler.

    Declaration
    Task<Attempt<bool, WebProfilerOperationStatus>> GetStatus()
    Returns
    Type Description
    Task<Attempt<bool, WebProfilerOperationStatus>>

    An Attempt<TResult, TStatus> containing the profiler enabled status and operation status.

    View Source

    SetStatus(bool)

    Sets the status of the web profiler.

    Declaration
    Task<Attempt<bool, WebProfilerOperationStatus>> SetStatus(bool status)
    Parameters
    Type Name Description
    bool status

    A value indicating whether the profiler should be enabled.

    Returns
    Type Description
    Task<Attempt<bool, WebProfilerOperationStatus>>

    An Attempt<TResult, TStatus> containing the new profiler status and operation status.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX