Updates to Core.Configuration Models to use DefaultValue attribute to allow auto generated JSONSchema to give a default value in schema
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
// Copyright (c) Umbraco.
|
||||
// See LICENSE for more details.
|
||||
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Umbraco.Cms.Core.Configuration.Models
|
||||
{
|
||||
/// <summary>
|
||||
@@ -9,14 +11,19 @@ namespace Umbraco.Cms.Core.Configuration.Models
|
||||
[UmbracoOptions(Constants.Configuration.ConfigCoreDebug)]
|
||||
public class CoreDebugSettings
|
||||
{
|
||||
internal const bool StaticLogIncompletedScopes = false;
|
||||
internal const bool StaticDumpOnTimeoutThreadAbort = false;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether incompleted scopes should be logged.
|
||||
/// </summary>
|
||||
public bool LogIncompletedScopes { get; set; } = false;
|
||||
[DefaultValue(StaticLogIncompletedScopes)]
|
||||
public bool LogIncompletedScopes { get; set; } = StaticLogIncompletedScopes;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether memory dumps on thread abort should be taken.
|
||||
/// </summary>
|
||||
public bool DumpOnTimeoutThreadAbort { get; set; } = false;
|
||||
[DefaultValue(StaticDumpOnTimeoutThreadAbort)]
|
||||
public bool DumpOnTimeoutThreadAbort { get; set; } = StaticDumpOnTimeoutThreadAbort;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user