38 lines
1.3 KiB
C#
38 lines
1.3 KiB
C#
// Copyright (c) Umbraco.
|
|
// See LICENSE for more details.
|
|
|
|
using System.ComponentModel;
|
|
|
|
namespace Umbraco.Cms.Core.Configuration.Models;
|
|
|
|
/// <summary>
|
|
/// Typed configuration options for runtime settings.
|
|
/// </summary>
|
|
[UmbracoOptions(Constants.Configuration.ConfigRuntime)]
|
|
public class RuntimeSettings
|
|
{
|
|
private const string StaticTemporaryFileLifeTime = "1.00:00:00"; // TimeSpan.FromDays(1);
|
|
/// <summary>
|
|
/// Gets or sets the runtime mode.
|
|
/// </summary>
|
|
[DefaultValue(RuntimeMode.BackofficeDevelopment)]
|
|
public RuntimeMode Mode { get; set; } = RuntimeMode.BackofficeDevelopment;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the maximum query string length.
|
|
/// </summary>
|
|
[Obsolete("No longer used and will be removed in Umbraco 16.")]
|
|
public int? MaxQueryStringLength { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the maximum request length in kb.
|
|
/// </summary>
|
|
public int? MaxRequestLength { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the timespan temporary files are kept, before they are removed by a background task.
|
|
/// </summary>
|
|
[DefaultValue(StaticTemporaryFileLifeTime)]
|
|
public TimeSpan TemporaryFileLifeTime { get; set; } = TimeSpan.Parse(StaticTemporaryFileLifeTime);
|
|
}
|