2020-12-06 10:46:04 +01:00
|
|
|
// Copyright (c) Umbraco.
|
|
|
|
|
// See LICENSE for more details.
|
|
|
|
|
|
2021-07-05 14:27:49 +01:00
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
2021-02-18 11:06:02 +01:00
|
|
|
namespace Umbraco.Cms.Core.Configuration.Models
|
2020-03-16 14:02:08 +01:00
|
|
|
{
|
2020-12-06 10:46:04 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Typed configuration options for core debug settings.
|
|
|
|
|
/// </summary>
|
2021-06-24 08:47:37 +02:00
|
|
|
[UmbracoOptions(Constants.Configuration.ConfigCoreDebug)]
|
2020-08-20 08:24:23 +01:00
|
|
|
public class CoreDebugSettings
|
2020-03-16 14:02:08 +01:00
|
|
|
{
|
2021-07-05 14:27:49 +01:00
|
|
|
internal const bool StaticLogIncompletedScopes = false;
|
|
|
|
|
internal const bool StaticDumpOnTimeoutThreadAbort = false;
|
|
|
|
|
|
2020-12-06 10:46:04 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether incompleted scopes should be logged.
|
|
|
|
|
/// </summary>
|
2021-07-05 14:27:49 +01:00
|
|
|
[DefaultValue(StaticLogIncompletedScopes)]
|
|
|
|
|
public bool LogIncompletedScopes { get; set; } = StaticLogIncompletedScopes;
|
2020-03-18 11:29:29 +01:00
|
|
|
|
2020-12-06 10:46:04 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether memory dumps on thread abort should be taken.
|
|
|
|
|
/// </summary>
|
2021-07-05 14:27:49 +01:00
|
|
|
[DefaultValue(StaticDumpOnTimeoutThreadAbort)]
|
|
|
|
|
public bool DumpOnTimeoutThreadAbort { get; set; } = StaticDumpOnTimeoutThreadAbort;
|
2020-03-16 14:02:08 +01:00
|
|
|
}
|
|
|
|
|
}
|