NetCore: Migrated database server registrar and messenger tasks into hosted services (#9353)
* Migrated database server registrar and messenger tasks into hosted services. Moved DatabaseServerRegistrar Options into injectable configuration. * Added further cases for unit tests on hosted services checking execution based on runtime level. * Migrated DatabaseServerMessengerOptions into configuration.
This commit is contained in:
@@ -25,6 +25,7 @@ using Umbraco.Core.Persistence;
|
||||
using Umbraco.Core.Persistence.SqlSyntax;
|
||||
using Umbraco.Core.Runtime;
|
||||
using Umbraco.Infrastructure.HostedServices;
|
||||
using Umbraco.Infrastructure.HostedServices.ServerRegistration;
|
||||
using Umbraco.Web.Common.AspNetCore;
|
||||
using Umbraco.Web.Common.Profiler;
|
||||
using ConnectionStrings = Umbraco.Core.Configuration.Models.ConnectionStrings;
|
||||
@@ -298,6 +299,9 @@ namespace Umbraco.Extensions
|
||||
services.AddHostedService<ScheduledPublishing>();
|
||||
services.AddHostedService<TempFileCleanup>();
|
||||
|
||||
services.AddHostedService<InstructionProcessTask>();
|
||||
services.AddHostedService<TouchServerTask>();
|
||||
|
||||
return services;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user