using System;
using log4net.Core;
namespace Umbraco.Core.PropertyEditors
{
///
/// Indicates the cache level for a property cacheable value.
///
/// Use this attribute to mark property values converters.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
public class PropertyValueCacheAttribute : Attribute
{
///
/// Initializes a new instance of the class with a cacheable value and a cache level.
///
/// The cacheable value.
/// The cache level.
public PropertyValueCacheAttribute(PropertyCacheValue value, PropertyCacheLevel level)
{
Value = value;
Level = level;
}
///
/// Gets or sets the cacheable value.
///
public PropertyCacheValue Value { get; private set; }
///
/// Gets or sets the cache level;
///
public PropertyCacheLevel Level { get; private set; }
}
}