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 SourceGetStatus()
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. |
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. |