elsa-core/src/common/Elsa.Features/Attributes/DependencyOf.cs
Sipke Schoorstra e4d6ad22c4
Decouple Expression Types (#4622)
* Refactor Expressions model

* Enable expression type filtering

* Implement dynamic enablement of satelite dependencies
2023-11-14 20:44:42 +01:00

19 lines
516 B
C#

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; }
}