elsa-core/src/common/Elsa.Features/Attributes/DependencyOf.cs

19 lines
516 B
C#
Raw Normal View History

namespace Elsa.Features.Attributes;
/// <summary>
/// Specifies that the feature is enabled automatically when the specified feature is enabled.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class DependencyOfAttribute : Attribute
{
/// <inheritdoc />
public DependencyOfAttribute(Type type)
{
Type = type;
}
/// <summary>
/// The type of the feature this feature is a dependency of.
/// </summary>
public Type Type { get; set; }
}