Amended registration of health check scheduled notifiers (email and Slack) to use a resolver method and allow others to be added without modifying core

This commit is contained in:
AndyButland
2017-06-18 16:41:46 +02:00
parent 01a2ba8ad6
commit 9f68bd4e52
21 changed files with 492 additions and 170 deletions

View File

@@ -0,0 +1,18 @@
using System;
namespace Umbraco.Web.HealthCheck
{
/// <summary>
/// Metadata attribute for health check notification methods
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class HealthCheckNotificationMethodAttribute : Attribute
{
public HealthCheckNotificationMethodAttribute(string alias)
{
Alias = alias;
}
public string Alias { get; private set; }
}
}