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