* Run code cleanup * Start manual cleanup after dotnet format * Finish up manual pass * Fix up missed warnings * Fix after merge * Update src/Umbraco.Core/Cache/ContentTypeCacheRefresher.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Cache/DataTypeCacheRefresher.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Cache/DeepCloneAppCache.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Cache/DomainCacheRefresher.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Cache/MacroCacheRefresher.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Cache/MediaCacheRefresher.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Cache/MemberCacheRefresher.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Cache/MemberGroupCacheRefresher.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Composing/OrderedCollectionBuilderBase.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Configuration/Models/RequestHandlerSettings.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Composing/SetCollectionBuilderBase.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Composing/WeightedCollectionBuilderBase.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/ContentApps/ContentAppFactoryCollectionBuilder.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Dashboards/DashboardCollectionBuilder.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Extensions/StringExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Extensions/StringExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Extensions/StringExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Extensions/StringExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Extensions/StringExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Extensions/StringExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Extensions/StringExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/ContentTypeRefreshedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/ContentTypeSavedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/ContentTypeSavingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/DictionaryCacheRefresherNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/DataTypeCacheRefresherNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/ContentUnpublishingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/DictionaryItemDeletingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/DictionaryItemSavedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/DictionaryItemSavingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/DomainCacheRefresherNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/LanguageCacheRefresherNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MacroCacheRefresherNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MediaCacheRefresherNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MediaEmptiedRecycleBinNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MediaEmptyingRecycleBinNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MediaMovedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MediaMovedToRecycleBinNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Extensions/StringExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Extensions/StringExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Extensions/StringExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Extensions/StringExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Extensions/StringExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Extensions/StringExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MediaMovedToRecycleBinNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MediaMovingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MediaMovingToRecycleBinNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MediaTreeChangeNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MediaTreeChangeNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MediaTypeChangedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MediaTypeDeletingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MediaTypeMovedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MediaTypeMovingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MediaTypeMovingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MediaTypeRefreshedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MemberCacheRefresherNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MemberGroupCacheRefresherNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MemberGroupDeletingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MemberGroupSavedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MemberGroupSavingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MemberTypeChangedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MemberTypeDeletedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MemberTypeDeletingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MemberTypeMovedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MemberTypeMovedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MemberTypeMovingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MemberTypeMovingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MemberTypeRefreshedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MemberTypeSavingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Extensions/StringExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Extensions/UriExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MovedToRecycleBinNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MovedToRecycleBinNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MovingToRecycleBinNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/MovingToRecycleBinNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/PartialViewDeletingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Extensions/UriExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/IO/PhysicalFileSystem.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/IO/PhysicalFileSystem.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/IO/ShadowWrapper.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Logging/DisposableTimer.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Install/InstallSteps/UpgradeStep.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Mapping/MapDefinitionCollectionBuilder.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Media/EmbedProviders/EmbedProvidersCollectionBuilder.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/PartialViewSavedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Models/ContentEditing/ContentVariationDisplay.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/PartialViewSavingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/PublicAccessCacheRefresherNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/PublicAccessEntryDeletedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/PublicAccessEntryDeletingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/PublicAccessEntryDeletingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/PublicAccessEntrySavedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/PublicAccessEntrySavingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/PublicAccessEntrySavingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/RelationTypeCacheRefresherNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/RelationTypeDeletingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/RelationTypeSavedNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/RelationTypeSavingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/StatefulNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/StylesheetDeletingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Notifications/StylesheetSavingNotification.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Models/DeepCloneHelper.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Models/File.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Models/PropertyGroupExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Core/Models/PropertyGroupExtensions.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Fix based on review * Fix after merge Signed-off-by: Zeegaan <nge@umbraco.dk> Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk> Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> Co-authored-by: Zeegaan <nge@umbraco.dk>
233 lines
9.3 KiB
C#
233 lines
9.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 global settings.
|
|
/// </summary>
|
|
[UmbracoOptions(Constants.Configuration.ConfigGlobal)]
|
|
public class GlobalSettings
|
|
{
|
|
internal const string
|
|
StaticReservedPaths =
|
|
"~/app_plugins/,~/install/,~/mini-profiler-resources/,~/umbraco/,"; // must end with a comma!
|
|
|
|
internal const string StaticReservedUrls = "~/.well-known,"; // must end with a comma!
|
|
internal const string StaticTimeOut = "00:20:00";
|
|
internal const string StaticDefaultUILanguage = "en-US";
|
|
internal const bool StaticHideTopLevelNodeFromPath = true;
|
|
internal const bool StaticUseHttps = false;
|
|
internal const int StaticVersionCheckPeriod = 7;
|
|
internal const string StaticUmbracoPath = Constants.System.DefaultUmbracoPath;
|
|
internal const string StaticIconsPath = "umbraco/assets/icons";
|
|
internal const string StaticUmbracoCssPath = "~/css";
|
|
internal const string StaticUmbracoScriptsPath = "~/scripts";
|
|
internal const string StaticUmbracoMediaPath = "~/media";
|
|
internal const bool StaticInstallMissingDatabase = false;
|
|
internal const bool StaticDisableElectionForSingleServer = false;
|
|
internal const string StaticNoNodesViewPath = "~/umbraco/UmbracoWebsite/NoNodes.cshtml";
|
|
internal const string StaticDistributedLockingReadLockDefaultTimeout = "00:01:00";
|
|
internal const string StaticDistributedLockingWriteLockDefaultTimeout = "00:00:05";
|
|
internal const bool StaticSanitizeTinyMce = false;
|
|
internal const int StaticMainDomReleaseSignalPollingInterval = 2000;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the reserved URLs (must end with a comma).
|
|
/// </summary>
|
|
[DefaultValue(StaticReservedUrls)]
|
|
public string ReservedUrls { get; set; } = StaticReservedUrls;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the reserved paths (must end with a comma).
|
|
/// </summary>
|
|
[DefaultValue(StaticReservedPaths)]
|
|
public string ReservedPaths { get; set; } = StaticReservedPaths;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the back-office login timeout.
|
|
/// </summary>
|
|
[DefaultValue(StaticTimeOut)]
|
|
public TimeSpan TimeOut { get; set; } = TimeSpan.Parse(StaticTimeOut);
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the default UI language.
|
|
/// </summary>
|
|
[DefaultValue(StaticDefaultUILanguage)]
|
|
public string DefaultUILanguage { get; set; } = StaticDefaultUILanguage;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether to hide the top level node from the path.
|
|
/// </summary>
|
|
[DefaultValue(StaticHideTopLevelNodeFromPath)]
|
|
public bool HideTopLevelNodeFromPath { get; set; } = StaticHideTopLevelNodeFromPath;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether HTTPS should be used.
|
|
/// </summary>
|
|
[DefaultValue(StaticUseHttps)]
|
|
public bool UseHttps { get; set; } = StaticUseHttps;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the version check period in days.
|
|
/// </summary>
|
|
[DefaultValue(StaticVersionCheckPeriod)]
|
|
public int VersionCheckPeriod { get; set; } = StaticVersionCheckPeriod;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the Umbraco back-office path.
|
|
/// </summary>
|
|
[DefaultValue(StaticUmbracoPath)]
|
|
public string UmbracoPath { get; set; } = StaticUmbracoPath;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the Umbraco icons path.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// TODO: Umbraco cannot be hard coded here that is what UmbracoPath is for
|
|
/// so this should not be a normal get set it has to have dynamic ability to return the correct
|
|
/// path given UmbracoPath if this hasn't been explicitly set.
|
|
/// </remarks>
|
|
[DefaultValue(StaticIconsPath)]
|
|
public string IconsPath { get; set; } = StaticIconsPath;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the Umbraco CSS path.
|
|
/// </summary>
|
|
[DefaultValue(StaticUmbracoCssPath)]
|
|
public string UmbracoCssPath { get; set; } = StaticUmbracoCssPath;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the Umbraco scripts path.
|
|
/// </summary>
|
|
[DefaultValue(StaticUmbracoScriptsPath)]
|
|
public string UmbracoScriptsPath { get; set; } = StaticUmbracoScriptsPath;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the Umbraco media request path.
|
|
/// </summary>
|
|
[DefaultValue(StaticUmbracoMediaPath)]
|
|
public string UmbracoMediaPath { get; set; } = StaticUmbracoMediaPath;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the physical Umbraco media root path (falls back to <see cref="UmbracoMediaPath" /> when
|
|
/// empty).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// If the value is a virtual path, it's resolved relative to the webroot.
|
|
/// </remarks>
|
|
public string UmbracoMediaPhysicalRootPath { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether to install the database when it is missing.
|
|
/// </summary>
|
|
[DefaultValue(StaticInstallMissingDatabase)]
|
|
public bool InstallMissingDatabase { get; set; } = StaticInstallMissingDatabase;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether to disable the election for a single server.
|
|
/// </summary>
|
|
[DefaultValue(StaticDisableElectionForSingleServer)]
|
|
public bool DisableElectionForSingleServer { get; set; } = StaticDisableElectionForSingleServer;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the database factory server version.
|
|
/// </summary>
|
|
public string DatabaseFactoryServerVersion { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the main dom lock.
|
|
/// </summary>
|
|
public string MainDomLock { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value to discriminate MainDom boundaries.
|
|
/// <para>
|
|
/// Generally the default should suffice but useful for advanced scenarios e.g. azure deployment slot based zero
|
|
/// downtime deployments.
|
|
/// </para>
|
|
/// </summary>
|
|
public string MainDomKeyDiscriminator { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the duration (in milliseconds) for which the MainDomLock release signal polling task should sleep.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Doesn't apply to MainDomSemaphoreLock.
|
|
/// <para>
|
|
/// The default value is 2000ms.
|
|
/// </para>
|
|
/// </remarks>
|
|
[DefaultValue(StaticMainDomReleaseSignalPollingInterval)]
|
|
public int MainDomReleaseSignalPollingInterval { get; set; } = StaticMainDomReleaseSignalPollingInterval;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the telemetry ID.
|
|
/// </summary>
|
|
public string Id { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the path to the no content view.
|
|
/// </summary>
|
|
[DefaultValue(StaticNoNodesViewPath)]
|
|
public string NoNodesViewPath { get; set; } = StaticNoNodesViewPath;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the database server registrar settings.
|
|
/// </summary>
|
|
public DatabaseServerRegistrarSettings DatabaseServerRegistrar { get; set; } = new();
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the database server messenger settings.
|
|
/// </summary>
|
|
public DatabaseServerMessengerSettings DatabaseServerMessenger { get; set; } = new();
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value for the SMTP settings.
|
|
/// </summary>
|
|
public SmtpSettings? Smtp { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether SMTP is configured.
|
|
/// </summary>
|
|
public bool IsSmtpServerConfigured => !string.IsNullOrWhiteSpace(Smtp?.Host);
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether there is a physical pickup directory configured.
|
|
/// </summary>
|
|
public bool IsPickupDirectoryLocationConfigured => !string.IsNullOrWhiteSpace(Smtp?.PickupDirectoryLocation);
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether TinyMCE scripting sanitization should be applied.
|
|
/// </summary>
|
|
[DefaultValue(StaticSanitizeTinyMce)]
|
|
public bool SanitizeTinyMce { get; set; } = StaticSanitizeTinyMce;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value representing the maximum time to wait whilst attempting to obtain a distributed read lock.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// The default value is 60 seconds.
|
|
/// </remarks>
|
|
[DefaultValue(StaticDistributedLockingReadLockDefaultTimeout)]
|
|
public TimeSpan DistributedLockingReadLockDefaultTimeout { get; set; } =
|
|
TimeSpan.Parse(StaticDistributedLockingReadLockDefaultTimeout);
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value representing the maximum time to wait whilst attempting to obtain a distributed write lock.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// The default value is 5 seconds.
|
|
/// </remarks>
|
|
[DefaultValue(StaticDistributedLockingWriteLockDefaultTimeout)]
|
|
public TimeSpan DistributedLockingWriteLockDefaultTimeout { get; set; } =
|
|
TimeSpan.Parse(StaticDistributedLockingWriteLockDefaultTimeout);
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value representing the DistributedLockingMechanism to use.
|
|
/// </summary>
|
|
public string DistributedLockingMechanism { get; set; } = string.Empty;
|
|
}
|