elsa-core/src/common/Elsa.Features/Attributes/DependsOn.cs
Marko Lahma 492d6fcd35
Fixing some analyzer warnings (#5617)
* Fixing some analyzer warnings

* review feedback

---------

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
2024-07-05 15:14:28 +02:00

22 lines
646 B
C#

namespace Elsa.Features.Attributes;
/// <summary>
/// Specifies that the feature depends on another feature.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class DependsOnAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="DependsOnAttribute"/> class.
/// </summary>
/// <param name="type">The type of the feature this feature depends on.</param>
public DependsOnAttribute(Type type)
{
Type = type;
}
/// <summary>
/// The type of the feature this feature depends on.
/// </summary>
public Type Type { get; set; }
}