Files
Umbraco-CMS/src/Umbraco.Web/HealthCheck/HealthCheckAttribute.cs

26 lines
645 B
C#
Raw Normal View History

2018-11-22 14:05:51 +00:00
using System;
namespace Umbraco.Web.HealthCheck
{
/// <summary>
/// Metadata attribute for Health checks
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class HealthCheckAttribute : Attribute
2018-11-22 14:05:51 +00:00
{
public HealthCheckAttribute(string id, string name)
{
Id = new Guid(id);
Name = name;
}
public string Name { get; private set; }
public string Description { get; set; }
public string Group { get; set; }
public Guid Id { get; private set; }
//TODO: Do we need more metadata?
}
2018-11-22 14:05:51 +00:00
}