Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit 8fa2b69

Browse files
committed
Appeased the compiler warnings - swapped the DisposableTimer with ProfilingLogger
1 parent a87fbe6 commit 8fa2b69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Our.Umbraco.DocTypeGridEditor/Helpers/DocTypeGridEditorHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static IPublishedContent ConvertValueToContent(string id, string contentT
4444

4545
private static IPublishedContent ConvertValue(string id, string contentTypeAlias, string dataJson)
4646
{
47-
using (var timer = DisposableTimer.DebugDuration<DocTypeGridEditorHelper>(string.Format("ConvertValue ({0}, {1})", id, contentTypeAlias)))
47+
using (var timer = ApplicationContext.Current.ProfilingLogger.DebugDuration<DocTypeGridEditorHelper>(string.Format("ConvertValue ({0}, {1})", id, contentTypeAlias)))
4848
{
4949
var contentTypes = GetContentTypesByAlias(contentTypeAlias);
5050
var properties = new List<IPublishedProperty>();

src/Our.Umbraco.DocTypeGridEditor/Web/Helpers/SurfaceControllerHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ internal static class SurfaceControllerHelper
1414
{
1515
public static bool SurfaceControllerExists(string controllerName, string actionName = "Index")
1616
{
17-
using (var timer = DisposableTimer.DebugDuration<Bootstrap>(string.Format("SurfaceControllerExists ({0}, {1})", controllerName, actionName)))
17+
using (var timer = ApplicationContext.Current.ProfilingLogger.DebugDuration<Bootstrap>(string.Format("SurfaceControllerExists ({0}, {1})", controllerName, actionName)))
1818
{
1919
// Setup dummy route data
2020
var rd = new RouteData();

0 commit comments

Comments
 (0)