2016-10-07 14:34:55 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
2019-02-14 09:15:47 +01:00
|
|
|
|
namespace Umbraco.Core.Composing
|
2016-10-07 14:34:55 +02:00
|
|
|
|
{
|
2019-01-10 14:03:25 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Marks a composer to indicate a minimum and/or maximum runtime level for which the composer would compose.
|
|
|
|
|
|
/// </summary>
|
2016-10-07 14:34:55 +02:00
|
|
|
|
[AttributeUsage(AttributeTargets.Class /*, AllowMultiple = false, Inherited = true*/)]
|
|
|
|
|
|
public class RuntimeLevelAttribute : Attribute
|
|
|
|
|
|
{
|
2019-01-10 14:03:25 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the minimum runtime level for which the composer would compose.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public RuntimeLevel MinLevel { get; set; } = RuntimeLevel.Install;
|
2016-10-07 14:34:55 +02:00
|
|
|
|
|
2019-01-10 14:03:25 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the maximum runtime level for which the composer would compose.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public RuntimeLevel MaxLevel { get; set; } = RuntimeLevel.Run;
|
2016-10-07 14:34:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|