2022-05-27 10:36:39 +00:00
|
|
|
namespace Elsa.Features.Attributes;
|
2022-05-26 10:47:31 +00:00
|
|
|
|
2023-04-09 21:35:32 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Specifies that the feature depends on another feature.
|
|
|
|
|
/// </summary>
|
2022-05-26 10:47:31 +00:00
|
|
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
|
2024-07-05 13:14:28 +00:00
|
|
|
public class DependsOnAttribute : Attribute
|
2022-05-26 10:47:31 +00:00
|
|
|
{
|
2023-04-09 21:35:32 +00:00
|
|
|
/// <summary>
|
2024-07-05 13:14:28 +00:00
|
|
|
/// Initializes a new instance of the <see cref="DependsOnAttribute"/> class.
|
2023-04-09 21:35:32 +00:00
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="type">The type of the feature this feature depends on.</param>
|
2024-07-05 13:14:28 +00:00
|
|
|
public DependsOnAttribute(Type type)
|
2022-05-26 10:47:31 +00:00
|
|
|
{
|
|
|
|
|
Type = type;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2023-04-09 21:35:32 +00:00
|
|
|
/// The type of the feature this feature depends on.
|
2022-05-26 10:47:31 +00:00
|
|
|
/// </summary>
|
|
|
|
|
public Type Type { get; set; }
|
|
|
|
|
}
|