* Start work * Introduce dto * Start making repository * Add migrations * Implement fetchable first job * Fix up to also finish tasks * Refactor jobs to distributed background jobs * Filter jobs correctly on LastRun * Hardcode delay * Add settings to configure delay and period * Fix formatting * Add default data * Add update on startup, which will update periods on startup * Refactor service to return job directly * Update src/Umbraco.Infrastructure/Services/Implement/DistributedJobService.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/Umbraco.Infrastructure/BackgroundJobs/DistributedBackgroundJobHostedService.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/Umbraco.Infrastructure/Migrations/Install/DatabaseDataCreator.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/Umbraco.Infrastructure/Migrations/Install/DatabaseDataCreator.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/Umbraco.Infrastructure/BackgroundJobs/DistributedBackgroundJobHostedService.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Remove unused * Move jobs and make internal * make OpenIddictCleanupJob.cs public, as it is used elsewhere * Minor docstring changes * Update src/Umbraco.Core/Persistence/Constants-Locks.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * ´Throw correct exceptions * Update xml doc * Remove business logic from repository * Remove more business logic from repository into service * Remove adding jobs from migration * fix creation * Rename to ExecuteAsync --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: mole <nikolajlauridsen@protonmail.ch>
93 lines
2.9 KiB
C#
93 lines
2.9 KiB
C#
using Umbraco.Cms.Core.Configuration.Models;
|
|
using Umbraco.Cms.Core.Models;
|
|
|
|
internal sealed class UmbracoCmsSchema
|
|
{
|
|
public required UmbracoDefinition Umbraco { get; set; }
|
|
|
|
/// <summary>
|
|
/// Configuration container for all Umbraco products.
|
|
/// </summary>
|
|
public class UmbracoDefinition
|
|
{
|
|
public required UmbracoCmsDefinition CMS { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Configuration of Umbraco CMS.
|
|
/// </summary>
|
|
public class UmbracoCmsDefinition
|
|
{
|
|
public required ContentSettings Content { get; set; }
|
|
|
|
public required DeliveryApiSettings DeliveryApi { get; set; }
|
|
|
|
public required CoreDebugSettings Debug { get; set; }
|
|
|
|
public required ExceptionFilterSettings ExceptionFilter { get; set; }
|
|
|
|
public required ModelsBuilderSettings ModelsBuilder { get; set; }
|
|
|
|
public required GlobalSettings Global { get; set; }
|
|
|
|
public required HealthChecksSettings HealthChecks { get; set; }
|
|
|
|
public required HostingSettings Hosting { get; set; }
|
|
|
|
public required ImagingSettings Imaging { get; set; }
|
|
|
|
public required IndexCreatorSettings Examine { get; set; }
|
|
|
|
public required IndexingSettings Indexing { get; set; }
|
|
|
|
public required LoggingSettings Logging { get; set; }
|
|
|
|
public required NuCacheSettings NuCache { get; set; }
|
|
|
|
public required RequestHandlerSettings RequestHandler { get; set; }
|
|
|
|
public required RuntimeSettings Runtime { get; set; }
|
|
|
|
public required SecuritySettings Security { get; set; }
|
|
|
|
public required TypeFinderSettings TypeFinder { get; set; }
|
|
|
|
public required WebRoutingSettings WebRouting { get; set; }
|
|
|
|
public required UmbracoPluginSettings Plugins { get; set; }
|
|
|
|
public required UnattendedSettings Unattended { get; set; }
|
|
|
|
public required BasicAuthSettings BasicAuth { get; set; }
|
|
|
|
public required PackageMigrationSettings PackageMigration { get; set; }
|
|
|
|
public required LegacyPasswordMigrationSettings LegacyPasswordMigration { get; set; }
|
|
|
|
public required HelpPageSettings HelpPage { get; set; }
|
|
|
|
public required InstallDefaultDataNamedOptions InstallDefaultData { get; set; }
|
|
|
|
public required DataTypesSettings DataTypes { get; set; }
|
|
|
|
public required MarketplaceSettings Marketplace { get; set; }
|
|
|
|
public required WebhookSettings Webhook { get; set; }
|
|
|
|
public required CacheSettings Cache { get; set; }
|
|
|
|
public required DistributedJobSettings DistributedJobSettings { get; set; }
|
|
}
|
|
|
|
public class InstallDefaultDataNamedOptions
|
|
{
|
|
public required InstallDefaultDataSettings Languages { get; set; }
|
|
|
|
public required InstallDefaultDataSettings DataTypes { get; set; }
|
|
|
|
public required InstallDefaultDataSettings MediaTypes { get; set; }
|
|
|
|
public required InstallDefaultDataSettings MemberTypes { get; set; }
|
|
}
|
|
}
|