From 5ce8e29aa6f56b3c53105e91496f91a33c607c05 Mon Sep 17 00:00:00 2001 From: elitsa Date: Tue, 28 Jan 2020 14:38:18 +0100 Subject: [PATCH] Moving Scheduling classes dependent on the recently moved HealthCheck classes - changing class accessibility level, installing needed nuget into Infrastructure proj --- src/Umbraco.Abstractions/Scheduling/ILatchedBackgroundTask.cs | 2 +- .../Scheduling/BackgroundTaskRunner.cs | 1 - .../Scheduling/HealthCheckNotifier.cs | 4 ++-- src/Umbraco.Infrastructure/Umbraco.Infrastructure.csproj | 1 + src/Umbraco.Web/Umbraco.Web.csproj | 2 -- 5 files changed, 4 insertions(+), 6 deletions(-) rename src/{Umbraco.Web => Umbraco.Infrastructure}/Scheduling/BackgroundTaskRunner.cs (99%) rename src/{Umbraco.Web => Umbraco.Infrastructure}/Scheduling/HealthCheckNotifier.cs (98%) diff --git a/src/Umbraco.Abstractions/Scheduling/ILatchedBackgroundTask.cs b/src/Umbraco.Abstractions/Scheduling/ILatchedBackgroundTask.cs index 6fbe94e504..e981623b34 100644 --- a/src/Umbraco.Abstractions/Scheduling/ILatchedBackgroundTask.cs +++ b/src/Umbraco.Abstractions/Scheduling/ILatchedBackgroundTask.cs @@ -10,7 +10,7 @@ namespace Umbraco.Web.Scheduling /// a condition is met. However if the tasks runner has to terminate, /// latched background tasks can be executed immediately, depending on /// the value returned by RunsOnShutdown. - internal interface ILatchedBackgroundTask : IBackgroundTask + public interface ILatchedBackgroundTask : IBackgroundTask { /// /// Gets a task on latch. diff --git a/src/Umbraco.Web/Scheduling/BackgroundTaskRunner.cs b/src/Umbraco.Infrastructure/Scheduling/BackgroundTaskRunner.cs similarity index 99% rename from src/Umbraco.Web/Scheduling/BackgroundTaskRunner.cs rename to src/Umbraco.Infrastructure/Scheduling/BackgroundTaskRunner.cs index e51edccb8b..0b5b81319f 100644 --- a/src/Umbraco.Web/Scheduling/BackgroundTaskRunner.cs +++ b/src/Umbraco.Infrastructure/Scheduling/BackgroundTaskRunner.cs @@ -2,7 +2,6 @@ using System.Threading; using System.Threading.Tasks; using System.Threading.Tasks.Dataflow; -using System.Web.Hosting; using Umbraco.Core; using Umbraco.Core.Events; using Umbraco.Core.Hosting; diff --git a/src/Umbraco.Web/Scheduling/HealthCheckNotifier.cs b/src/Umbraco.Infrastructure/Scheduling/HealthCheckNotifier.cs similarity index 98% rename from src/Umbraco.Web/Scheduling/HealthCheckNotifier.cs rename to src/Umbraco.Infrastructure/Scheduling/HealthCheckNotifier.cs index a0392a9a3e..00bbba8bb8 100644 --- a/src/Umbraco.Web/Scheduling/HealthCheckNotifier.cs +++ b/src/Umbraco.Infrastructure/Scheduling/HealthCheckNotifier.cs @@ -2,14 +2,14 @@ using System.Threading; using System.Threading.Tasks; using Umbraco.Core; +using Umbraco.Core.Configuration.HealthChecks; using Umbraco.Core.Logging; using Umbraco.Core.Sync; using Umbraco.Web.HealthCheck; -using Umbraco.Core.Configuration.HealthChecks; namespace Umbraco.Web.Scheduling { - internal class HealthCheckNotifier : RecurringTaskBase + public class HealthCheckNotifier : RecurringTaskBase { private readonly IRuntimeState _runtimeState; private readonly HealthCheckCollection _healthChecks; diff --git a/src/Umbraco.Infrastructure/Umbraco.Infrastructure.csproj b/src/Umbraco.Infrastructure/Umbraco.Infrastructure.csproj index 1717be98a4..8be4ecf58b 100644 --- a/src/Umbraco.Infrastructure/Umbraco.Infrastructure.csproj +++ b/src/Umbraco.Infrastructure/Umbraco.Infrastructure.csproj @@ -28,6 +28,7 @@ + diff --git a/src/Umbraco.Web/Umbraco.Web.csproj b/src/Umbraco.Web/Umbraco.Web.csproj index fe35e6de44..9c5a074e07 100755 --- a/src/Umbraco.Web/Umbraco.Web.csproj +++ b/src/Umbraco.Web/Umbraco.Web.csproj @@ -409,7 +409,6 @@ - @@ -481,7 +480,6 @@ -