You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/src/NzbDrone.Core/HealthCheck/CheckOnAttribute.cs

25 lines
578 B

using System;
namespace NzbDrone.Core.HealthCheck
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class CheckOnAttribute : Attribute
{
public Type EventType { get; set; }
public CheckOnCondition Condition { get; set; }
public CheckOnAttribute(Type eventType, CheckOnCondition condition = CheckOnCondition.Always)
{
EventType = eventType;
Condition = condition;
}
}
public enum CheckOnCondition
{
Always,
FailedOnly,
SuccessfulOnly
}
}