Files
Umbraco-CMS/src/Umbraco.Configuration/CoreDebug.cs

22 lines
732 B
C#
Raw Normal View History

2017-05-12 14:49:44 +02:00
using System;
2019-11-07 08:00:48 +01:00
using System.Configuration;
2017-05-12 14:49:44 +02:00
namespace Umbraco.Core.Configuration
{
public class CoreDebug : ICoreDebug
2017-05-12 14:49:44 +02:00
{
public CoreDebug()
{
2019-11-07 08:00:48 +01:00
var appSettings = ConfigurationManager.AppSettings;
LogUncompletedScopes = string.Equals("true", appSettings[Constants.AppSettings.Debug.LogUncompletedScopes], StringComparison.OrdinalIgnoreCase);
DumpOnTimeoutThreadAbort = string.Equals("true", appSettings[Constants.AppSettings.Debug.DumpOnTimeoutThreadAbort], StringComparison.OrdinalIgnoreCase);
2017-05-12 14:49:44 +02:00
}
2019-11-19 11:45:21 +11:00
/// <inheritdoc />
2017-05-12 14:49:44 +02:00
public bool LogUncompletedScopes { get; }
2019-11-19 11:45:21 +11:00
/// <inheritdoc />
2017-05-12 14:49:44 +02:00
public bool DumpOnTimeoutThreadAbort { get; }
}
}