From a571af8be2438a03cff4bb585079b31437f77af1 Mon Sep 17 00:00:00 2001 From: Stephan Date: Fri, 21 Dec 2018 13:42:24 +0100 Subject: [PATCH] Make more types IDiscoverable --- src/Umbraco.Core/Migrations/IPostMigration.cs | 3 ++- .../NotificationMethods/IHealthCheckNotificationMethod.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Core/Migrations/IPostMigration.cs b/src/Umbraco.Core/Migrations/IPostMigration.cs index 827a09e882..15daf0fc74 100644 --- a/src/Umbraco.Core/Migrations/IPostMigration.cs +++ b/src/Umbraco.Core/Migrations/IPostMigration.cs @@ -1,10 +1,11 @@ using Semver; +using Umbraco.Core.Composing; using Umbraco.Core.Logging; using Umbraco.Core.Scoping; namespace Umbraco.Core.Migrations { - public interface IPostMigration + public interface IPostMigration : IDiscoverable { void Execute(string name, IScope scope, SemVersion originVersion, SemVersion targetVersion, ILogger logger); } diff --git a/src/Umbraco.Web/HealthCheck/NotificationMethods/IHealthCheckNotificationMethod.cs b/src/Umbraco.Web/HealthCheck/NotificationMethods/IHealthCheckNotificationMethod.cs index 2b8009d201..f6e8f1d1c5 100644 --- a/src/Umbraco.Web/HealthCheck/NotificationMethods/IHealthCheckNotificationMethod.cs +++ b/src/Umbraco.Web/HealthCheck/NotificationMethods/IHealthCheckNotificationMethod.cs @@ -1,9 +1,10 @@ using System.Threading; using System.Threading.Tasks; +using Umbraco.Core.Composing; namespace Umbraco.Web.HealthCheck.NotificationMethods { - public interface IHealthCheckNotificationMethod + public interface IHealthCheckNotificationMethod : IDiscoverable { bool Enabled { get; } Task SendAsync(HealthCheckResults results, CancellationToken token);